From 02301bf15e1b0a815ce2fb29f56b2e01ff6b8a52 Mon Sep 17 00:00:00 2001 From: MrVauxs Date: Thu, 21 Dec 2023 03:04:06 +0100 Subject: [PATCH] dynamic header height calculation --- src/lib/components/ItemList.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/components/ItemList.svelte b/src/lib/components/ItemList.svelte index cbabd2f..ad69d60 100644 --- a/src/lib/components/ItemList.svelte +++ b/src/lib/components/ItemList.svelte @@ -79,12 +79,14 @@ next?.scrollIntoView({ block: 'center' }); } } + + let headerHeight = 0; -
-
+
+
@@ -114,7 +116,7 @@
{#each filteredItems as item}