From fb8a8b2224b1e4dbbf910bd5f3d7111f3ad2568d Mon Sep 17 00:00:00 2001 From: dtonon Date: Wed, 20 May 2026 23:29:02 +0100 Subject: [PATCH] Optimize navigation links --- src/lib/components/LeftSidebar.svelte | 14 ++++++++++---- src/lib/components/MobileMenu.svelte | 22 ++++++++++++++++++---- src/lib/components/Navbar.svelte | 8 ++++++-- src/routes/+layout.svelte | 20 ++++++++++++++++---- 4 files changed, 50 insertions(+), 14 deletions(-) diff --git a/src/lib/components/LeftSidebar.svelte b/src/lib/components/LeftSidebar.svelte index a2a4971..3990101 100644 --- a/src/lib/components/LeftSidebar.svelte +++ b/src/lib/components/LeftSidebar.svelte @@ -8,9 +8,11 @@ type Props = { mode: "simple" | "full"; activeRoom?: string; + activeResource?: string; + contactsActive?: boolean; }; - let { mode, activeRoom }: Props = $props(); + let { mode, activeRoom, activeResource, contactsActive }: Props = $props(); // The description of the room currently being viewed (full mode). const activeAbout = $derived( @@ -26,7 +28,7 @@ href="/" class="flex items-center gap-2 py-1 hover:bg-neutral-100 text-neutral-700" > - Home + {mode === "simple" ? "Discussions" : "Home"} {#if mode === "simple"} @@ -74,13 +76,17 @@ {#each resourcesStore.list as r (r.slug)} {r.title} {/each} ContactsContacts diff --git a/src/lib/components/MobileMenu.svelte b/src/lib/components/MobileMenu.svelte index 303e5e5..7662a51 100644 --- a/src/lib/components/MobileMenu.svelte +++ b/src/lib/components/MobileMenu.svelte @@ -10,9 +10,18 @@ onClose: () => void; mode: "simple" | "full"; activeRoom?: string; + activeResource?: string; + contactsActive?: boolean; }; - let { open, onClose, mode, activeRoom }: Props = $props(); + let { + open, + onClose, + mode, + activeRoom, + activeResource, + contactsActive, + }: Props = $props(); function onLogin() { onClose(); @@ -110,7 +119,8 @@ Home{mode === "simple" ? "Discussions" : "Home"} {#if mode === "full"} @@ -146,14 +156,18 @@ {r.title} {/each} Contacts diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 5358a8e..d293d63 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -15,7 +15,11 @@
- +