fix: fix profile system

This commit is contained in:
Xyphyn committed 2023-08-22 17:17:51 -07:00
1 parent e02abec9d0
commit 7518c06410
10 files changed
+30 -8

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@
<div
class="break-words
{getColor(cardColor)} rounded-md {clazz}"
{getColor(cardColor)} rounded-lg {clazz}"
{...$$restProps}
>
<slot />
+1 -1
View File
@@ -105,7 +105,7 @@
<Button
href="/moderation"
aria-label="Moderation"
class="max-md:w-9 h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700
hover:text-inherit hover:bg-slate-200 hover:dark:text-inherit relative hover:border-slate-300"
>
{#if $profile?.user?.reports ?? 0 > 0}
@@ -7,6 +7,7 @@
Icon,
Plus,
UserCircle,
UserGroup,
} from 'svelte-hero-icons'
import Button from '../../input/Button.svelte'
import Avatar from '$lib/components/ui/Avatar.svelte'
@@ -85,6 +86,10 @@
</span>
</Button>
{/each}
<SidebarButton href="/accounts" expanded={$userSettings.expandSidebar}>
<Icon src={UserGroup} mini size="16" />
Accounts
</SidebarButton>
{/if}
<hr class="border-slate-300 dark:border-zinc-800 my-1" />
{#if $profile?.user}