From 92060985410b37710f74380e9fa67f47a0349a65 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Sun, 27 Oct 2024 19:57:25 +0100 Subject: [PATCH] webapp: optimize placement of device profile doc buttons * remove empty container for device profile links. if a device profile has no links, no buttons are generated, but a row was still part of the DOM, adding spurious space between the select and the alert with the hint. * "float" the buttons to the right, as we always place these kinds of buttons to the right. --- webapp/src/views/DeviceAdminView.vue | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/webapp/src/views/DeviceAdminView.vue b/webapp/src/views/DeviceAdminView.vue index 258ec5b2..1bcb8bff 100644 --- a/webapp/src/views/DeviceAdminView.vue +++ b/webapp/src/views/DeviceAdminView.vue @@ -78,19 +78,15 @@ -
-
-
- -
+
(v.brightness = this.deviceConfigList.led[0].brightness)); }, }, + computed: { + docLinks() { + const mapping = this.pinMappingList.find((i) => i.name === this.deviceConfigList.curPin.name); + return mapping?.links || []; + }, + }, methods: { getPinMappingList() { this.pinMappingLoading = true;