From b67546e723da05ba4c6e29a004fec89080581af4 Mon Sep 17 00:00:00 2001 From: RockinChaos Date: Thu, 26 Sep 2024 20:07:40 -0700 Subject: [PATCH 01/10] chore: navigation improvements --- common/App.svelte | 2 +- common/components/Navbar.svelte | 28 ++++++++++++--------- common/components/NavbarLink.svelte | 6 +++-- common/components/Profiles.svelte | 11 ++++++++- common/components/Sidebar.svelte | 37 +++++++++++++++------------- common/components/SidebarLink.svelte | 11 ++++++--- 6 files changed, 58 insertions(+), 37 deletions(-) diff --git a/common/App.svelte b/common/App.svelte index dc1a2b2..a590d10 100644 --- a/common/App.svelte +++ b/common/App.svelte @@ -64,10 +64,10 @@
-
+ diff --git a/common/components/Navbar.svelte b/common/components/Navbar.svelte index fb1fa2b..3f39e98 100644 --- a/common/components/Navbar.svelte +++ b/common/components/Navbar.svelte @@ -1,6 +1,8 @@ diff --git a/common/components/Profiles.svelte b/common/components/Profiles.svelte index 030e6b7..376bf20 100644 --- a/common/components/Profiles.svelte +++ b/common/components/Profiles.svelte @@ -86,9 +86,15 @@ if (keyCode === 27) close() } $: $profileView && modal?.focus() + + window.addEventListener('overlay-check', () => { + if ($profileView) { + close() + } + }) -