From 0b64cc63a151b3c673c5629fc8185ecda5155173 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Sat, 26 Oct 2024 22:49:32 +0200 Subject: [PATCH] webapp: beautify radio statistics reset button it would be nice to have this in the header of the accordion, which is hard, but doable. however, clicking the button then also toggles the accordion, which is unacceptable. preventing that seems non-trivial, as the @click.stop() is not enough. also, nesting interactive elements is simply bad practice. the button can also go to the right of header, with reasonable effort, but the corner radii are then messed up and would need to react interactively (accordion collapsed or not), which is also a pain. we now "float" the reset button to the right, add a nice icon, and give the button some space so it at least looks like it belongs there. --- webapp/src/views/HomeView.vue | 36 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/webapp/src/views/HomeView.vue b/webapp/src/views/HomeView.vue index d88f4a52..54075aa8 100644 --- a/webapp/src/views/HomeView.vue +++ b/webapp/src/views/HomeView.vue @@ -308,23 +308,25 @@ - +
+ +