From fc92c14cc47e90f997813156905369a2652dc4b8 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 19:12:36 +0100
Subject: frontend: Expand toolbar automatically with filters present

---
 frontend/src/lib/toolbar/Toolbar.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'frontend/src/lib/toolbar/Toolbar.svelte')

diff --git a/frontend/src/lib/toolbar/Toolbar.svelte b/frontend/src/lib/toolbar/Toolbar.svelte
index 03cd892..9e961ed 100644
--- a/frontend/src/lib/toolbar/Toolbar.svelte
+++ b/frontend/src/lib/toolbar/Toolbar.svelte
@@ -11,11 +11,12 @@
 		center?: Snippet<[ToolbarState]>;
 		end?: Snippet<[ToolbarState]>;
 		expansion?: Snippet;
+		expand?: boolean;
 	}
 
-	let { start, center, end, expansion }: Props = $props();
+	let { start, center, end, expansion, expand: expand = false }: Props = $props();
 
-	let expanded = $state(false);
+	let expanded = $state(expand);
 
 	function toggle() {
 		expanded = !expanded;
-- 
cgit v1.2.3-2-gb3c3

