fix: loading spinner in profiles

This commit is contained in:
Xyphyn committed 2023-10-07 12:26:26 -07:00
1 parent b9e74944c8
commit 17ee2cd70a
2 files changed
+7 -1

No files matched your search

@@ -36,7 +36,12 @@
? '!bg-slate-100 dark:!bg-zinc-900' ? '!bg-slate-100 dark:!bg-zinc-900'
: ''}" : ''}"
> >
<ProfileAvatar profile={prof} {index} selected={$profile?.id == prof.id} /> <ProfileAvatar
profile={prof}
{index}
selected={$profile?.id == prof.id}
slot="prefix"
/>
<span <span
class="flex flex-col gap-0 {$profile?.id == prof.id ? 'font-semibold' : ''}" class="flex flex-col gap-0 {$profile?.id == prof.id ? 'font-semibold' : ''}"
slot="label" slot="label"
@@ -12,6 +12,7 @@
? '' ? ''
: 'max-lg:!p-1 [&>*]:max-lg:!justify-center'} {$$props.class}" : 'max-lg:!p-1 [&>*]:max-lg:!justify-center'} {$$props.class}"
> >
<slot name="prefix" slot="prefix" />
<slot /> <slot />
<div class={$userSettings.expandSidebar ? 'contents' : 'max-lg:hidden'}> <div class={$userSettings.expandSidebar ? 'contents' : 'max-lg:hidden'}>
<slot name="label" /> <slot name="label" />