fix: broken sidebar

This commit is contained in:
Xyphyn committed 2023-10-03 20:01:23 -07:00
1 parent e4a8718ba4
commit 63235c6525
1 file changed
+1 -3
@@ -5,7 +5,6 @@
import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte' import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte'
import { Button } from 'mono-svelte' import { Button } from 'mono-svelte'
export let expanded: boolean = false
export let prof: Profile export let prof: Profile
export let index: number export let index: number
@@ -34,7 +33,7 @@
}} }}
class="w-full font-normal {$profile?.id == prof.id class="w-full font-normal {$profile?.id == prof.id
? '!bg-slate-100 dark:!bg-zinc-900' ? '!bg-slate-100 dark:!bg-zinc-900'
: ''} {expanded ? '' : '!p-1.5'}" : ''}"
> >
<ProfileAvatar <ProfileAvatar
profile={prof} profile={prof}
@@ -43,7 +42,6 @@
slot="prefix" slot="prefix"
/> />
<span <span
class:hidden={!expanded}
class="flex flex-col gap-0 {$profile?.id == prof.id ? 'font-semibold' : ''}" class="flex flex-col gap-0 {$profile?.id == prof.id ? 'font-semibold' : ''}"
> >
{prof.username ?? prof.user?.local_user_view.person.name} {prof.username ?? prof.user?.local_user_view.person.name}