From 43dba5b49c7b5244e041ef7c0e07425fb14a31ea Mon Sep 17 00:00:00 2001 From: Alesana Eteuati Jr Date: Fri, 10 May 2024 21:03:17 +1300 Subject: [PATCH] [fix] sidebar not closing on mobile --- src/app.html | 2 +- src/lib/components/Sidebar.svelte | 7 +++---- src/routes/+layout.svelte | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app.html b/src/app.html index 1db319a..c9f0eba 100644 --- a/src/app.html +++ b/src/app.html @@ -1,4 +1,4 @@ - + diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index 464086b..2cdcbb3 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -6,10 +6,9 @@
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 0ff94bd..b5eeacb 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -19,7 +19,7 @@ visible = event.currentTarget.scrollTop > 150; } - let toggleSidebar; + let toggleSidebar = false;