From 8c46521d6e64dce3b3cb51474a1358f1a37bdca9 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Sat, 26 Oct 2024 22:16:20 +0200 Subject: [PATCH] webapp: do not use div with v-if but template elements when using v-if on a div element, the div will be part of the DOM in case the condition is true. if we group elements to use v-if on the group, we shall use a template element, so the group elements appear as siblings of the other elements. in particular, these spurious div do not mess up our CSS patch that sets the bottom margin for the last child in a card to "auto". --- webapp/src/views/NetworkAdminView.vue | 4 ++-- webapp/src/views/PowerLimiterAdminView.vue | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/webapp/src/views/NetworkAdminView.vue b/webapp/src/views/NetworkAdminView.vue index 058dfe32..43a63665 100644 --- a/webapp/src/views/NetworkAdminView.vue +++ b/webapp/src/views/NetworkAdminView.vue @@ -89,7 +89,7 @@ type="checkbox" /> -
+ diff --git a/webapp/src/views/PowerLimiterAdminView.vue b/webapp/src/views/PowerLimiterAdminView.vue index 05b7bdd9..639641a4 100644 --- a/webapp/src/views/PowerLimiterAdminView.vue +++ b/webapp/src/views/PowerLimiterAdminView.vue @@ -228,7 +228,7 @@ wide /> -
+ -
+ -
+