feat: add profile images

This commit is contained in:
Xyphyn committed 2023-09-13 16:09:53 -07:00
1 parent 74f9a9e8fd
commit 6f80d40c43
4 files changed
+38 -16

No files matched your search

@@ -32,10 +32,7 @@
switching = false
}}
class="w-full hover:bg-slate-200 {expanded ? '' : '!p-1.5'} {$profile?.id ==
prof.id
? 'font-bold'
: ''}"
class="w-full hover:bg-slate-200 {expanded ? '' : '!p-1.5'}"
>
<ProfileAvatar
profile={prof}
@@ -43,7 +40,10 @@
selected={$profile?.id == prof.id}
slot="prefix"
/>
<span class:hidden={!expanded} class="flex flex-col gap-0">
<span
class:hidden={!expanded}
class="flex flex-col gap-0 {$profile?.id == prof.id ? 'font-bold' : ''}"
>
{prof.username ?? prof.user?.local_user_view.person.name}
<span class="text-slate-500 dark:text-zinc-400 font-normal text-xs">
{prof.instance}