diff --git a/src/lib/components/ui/Expandable.svelte b/src/lib/components/ui/Expandable.svelte index 82e545cc..8da23450 100644 --- a/src/lib/components/ui/Expandable.svelte +++ b/src/lib/components/ui/Expandable.svelte @@ -38,9 +38,10 @@ src={open ? Minus : Plus} size="16" micro - class="{open - ? '' - : 'rotate-90'} transition-transform duration-300 ease-out" + class={[ + open && 'rotate-90', + 'transition-transform duration-300 ease-out', + ]} /> {/if}
{ @@ -47,9 +45,10 @@ /> {/snippet} {prof.username ?? prof.user?.local_user_view.person.name} {#if !guest && !LINKED_INSTANCE_URL} diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index 6403e942..2188002b 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -34,29 +34,25 @@ {#if profile.current?.jwt} {#snippet label()} - - {$t('profile.profile')} - + {$t('profile.profile')} {/snippet} {#snippet label()} - - {$t('profile.inbox')} - {#if $notifications.inbox} - - {$notifications.inbox > 99 ? '∞' : $notifications.inbox} - - {/if} - + {$t('profile.inbox')} + {#if $notifications.inbox} + + {$notifications.inbox > 99 ? '∞' : $notifications.inbox} + + {/if} {/snippet} {#snippet label()} - {$t('profile.saved')} + {$t('profile.saved')} {/snippet} {:else} @@ -66,7 +62,7 @@ icon={ArrowLeftOnRectangle} > {#snippet label()} - {$t('account.login')} + {$t('account.login')} {/snippet} {#snippet label()} - {$t('account.signup')} + {$t('account.signup')} {/snippet} {#snippet label()} - {$t('nav.menu.settings')} + {$t('nav.menu.settings')} {/snippet} {/if} @@ -109,9 +105,7 @@ {/snippet}
{#each [...profile.meta.profiles] as prof, index} -
- -
+ {/each}
diff --git a/src/lib/mono/button/Button.svelte b/src/lib/mono/button/Button.svelte index d5b9a6e3..70f3f22c 100644 --- a/src/lib/mono/button/Button.svelte +++ b/src/lib/mono/button/Button.svelte @@ -125,7 +125,7 @@ {...rest} tabindex={disabled || loading ? -1 : undefined} class={[ - loading ? buttonColor.secondary : buttonColor[color], + buttonColor[color], buttonSize[size], buttonRounding[rounding], buttonShadow[shadow],