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/routes/comics/+page.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'frontend/src/routes/comics/+page.svelte')

diff --git a/frontend/src/routes/comics/+page.svelte b/frontend/src/routes/comics/+page.svelte
index 372fd1a..03123be 100644
--- a/frontend/src/routes/comics/+page.svelte
+++ b/frontend/src/routes/comics/+page.svelte
@@ -51,6 +51,7 @@
 	});
 
 	let filter = $state(new ComicFilterContext(data.filter));
+	let filterSize = $derived(filter.includes + filter.excludes);
 	$effect(() => {
 		filter = new ComicFilterContext(data.filter);
 	});
@@ -59,7 +60,7 @@
 <Head section="Comics" />
 
 <Column>
-	<Toolbar>
+	<Toolbar expand={filterSize > 0}>
 		{#snippet start()}
 			<SelectionControls>
 				<MarkSelection>
-- 
cgit v1.2.3-2-gb3c3

