feat: add community header back on press

This commit is contained in:
James Xylight committed 2025-02-16 21:02:45 -08:00
1 parent 9a01df0d36
commit 2edc48b44c
6 files changed
+46 -20

No files matched your search

+6 -4
View File
@@ -14,21 +14,23 @@
profile = undefined,
selected = false,
index = 0,
size = 20,
size = 22,
guest = false,
}: Props = $props()
</script>
{#if profile}
<div style="width: {size}px; height: {size}px;">
<div
style="width: {size}px; height: {size}px;"
class={[profile.avatar && 'bg-slate-200 rounded-full dark:bg-zinc-700']}
>
{#if profile.avatar}
<img
src="{profile.avatar}?thumbnail=32&format=webp"
alt={profile.username}
width={size}
height={size}
class="flex-shrink-0 rounded-full ring-slate-800/50 dark:ring-zinc-200/50"
class:ring-2={selected}
class={['flex-shrink-0 rounded-full', selected && 'scale-75']}
/>
{:else}
<Icon