From 398887f79bec9e21fcecce5d3cf401778958204a Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sat, 16 Sep 2023 14:58:23 -0700 Subject: [PATCH] misc: add background to selected profile --- src/lib/components/ui/sidebar/ProfileButton.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/ui/sidebar/ProfileButton.svelte b/src/lib/components/ui/sidebar/ProfileButton.svelte index a55c6b56..de6e47dd 100644 --- a/src/lib/components/ui/sidebar/ProfileButton.svelte +++ b/src/lib/components/ui/sidebar/ProfileButton.svelte @@ -32,7 +32,9 @@ switching = false }} - class="w-full {expanded ? '' : '!p-1.5'}" + class="w-full font-normal {$profile?.id == prof.id + ? 'bg-slate-100 dark:bg-zinc-900' + : ''} {expanded ? '' : '!p-1.5'}" >