From 6e65bb8e41bca4caf177337417cf7ae0ff30a89a Mon Sep 17 00:00:00 2001 From: Tobias Frischmann Date: Sun, 30 Aug 2026 12:00:56 +0200 Subject: [PATCH] add checkbox item filter --- app/assets/css/main.css | 21 +-------- app/components/SideBar.vue | 6 ++- app/components/filter/CheckboxItem.vue | 45 +++++++++++++++++++ .../filter/{Item.vue => DropdownItem.vue} | 6 +-- app/pages/charts.vue | 41 ++++++++--------- 5 files changed, 71 insertions(+), 48 deletions(-) create mode 100644 app/components/filter/CheckboxItem.vue rename app/components/filter/{Item.vue => DropdownItem.vue} (92%) diff --git a/app/assets/css/main.css b/app/assets/css/main.css index b5abb99..3d21e84 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -18,28 +18,9 @@ } body { - @apply bg-zinc-900; + @apply bg-zinc-900 scrollbar-thumb-zinc-700; box-sizing: border-box; min-height: 100dvh; margin: 0; } - -/* improve scrollbar on chrome... */ -::-webkit-scrollbar { - width: 4px; - height: 4px; -} - -::-webkit-scrollbar-track { - background: transparent; -} - -::-webkit-scrollbar-thumb { - background: #888; - border-radius: 6px; -} - -::-webkit-scrollbar-thumb:hover { - background: #555; -} diff --git a/app/components/SideBar.vue b/app/components/SideBar.vue index c33e4c7..dea094b 100644 --- a/app/components/SideBar.vue +++ b/app/components/SideBar.vue @@ -20,10 +20,12 @@
- +
+ +
diff --git a/app/components/filter/CheckboxItem.vue b/app/components/filter/CheckboxItem.vue new file mode 100644 index 0000000..395473a --- /dev/null +++ b/app/components/filter/CheckboxItem.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/app/components/filter/Item.vue b/app/components/filter/DropdownItem.vue similarity index 92% rename from app/components/filter/Item.vue rename to app/components/filter/DropdownItem.vue index 92e9154..a7bdf78 100644 --- a/app/components/filter/Item.vue +++ b/app/components/filter/DropdownItem.vue @@ -2,7 +2,7 @@ const model = defineModel(); const { canClear = false, options } = defineProps<{ - shouldDisplay: boolean; + show: boolean; title: string; explanation: string; options: { value: string; description: string }[]; @@ -26,7 +26,7 @@