Skip to content

Commit

Permalink
fix: broken sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyphyn committed Oct 4, 2023
1 parent e4a8718 commit 63235c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/components/ui/sidebar/ProfileButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte'
import { Button } from 'mono-svelte'
export let expanded: boolean = false
export let prof: Profile
export let index: number
Expand Down Expand Up @@ -34,7 +33,7 @@
}}
class="w-full font-normal {$profile?.id == prof.id
? '!bg-slate-100 dark:!bg-zinc-900'
: ''} {expanded ? '' : '!p-1.5'}"
: ''}"
>
<ProfileAvatar
profile={prof}
Expand All @@ -43,7 +42,6 @@
slot="prefix"
/>
<span
class:hidden={!expanded}
class="flex flex-col gap-0 {$profile?.id == prof.id ? 'font-semibold' : ''}"
>
{prof.username ?? prof.user?.local_user_view.person.name}
Expand Down

0 comments on commit 63235c6

Please sign in to comment.