From ca3270437d3f48e4e03e462f4a2c3eccd7611d7f Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 4 May 2026 16:01:39 -0700 Subject: [PATCH] Highlight active space --- src/app/components/PrimaryNavItemSpace.svelte | 5 ++++- src/lib/components/PrimaryNavItem.svelte | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/components/PrimaryNavItemSpace.svelte b/src/app/components/PrimaryNavItemSpace.svelte index d1ef13b4..75e0851c 100644 --- a/src/app/components/PrimaryNavItemSpace.svelte +++ b/src/app/components/PrimaryNavItemSpace.svelte @@ -13,13 +13,16 @@ const onClick = () => goToSpace(url) + const path = makeSpacePath(url) + const display = $derived(deriveRelayDisplay(url)) + notification={$notifications.has(path)}> diff --git a/src/lib/components/PrimaryNavItem.svelte b/src/lib/components/PrimaryNavItem.svelte index ef17c631..e77dbe78 100644 --- a/src/lib/components/PrimaryNavItem.svelte +++ b/src/lib/components/PrimaryNavItem.svelte @@ -25,6 +25,7 @@ cx( "flex h-full w-full cursor-pointer items-center justify-center rounded-full transition-colors hover:bg-base-300", restProps.class, + {"bg-base-300 border border-solid border-base-content/20": active}, ), )