fix: sidebar not going down all the way
This commit is contained in:
1 parent
e51c4530f0
commit
9dc1b70a4e
1 file changed
+2
-47
@@ -28,55 +28,10 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav
|
<nav
|
||||||
class="flex flex-col pl-4 pr-4 py-4 overflow-auto
|
class="flex flex-col p-4 overflow-auto
|
||||||
gap-1 max-h-[calc(100svh-4rem)] {$$props.class}"
|
gap-1 h-screen {$$props.class}"
|
||||||
style={$$props.style}
|
style={$$props.style}
|
||||||
>
|
>
|
||||||
<Button
|
|
||||||
on:click={() =>
|
|
||||||
($userSettings.expandSidebar = !$userSettings.expandSidebar)}
|
|
||||||
size="square-md"
|
|
||||||
class="flex-shrink-0 lg:hidden"
|
|
||||||
>
|
|
||||||
<Icon src={ChevronDoubleRight} size="16" mini />
|
|
||||||
</Button>
|
|
||||||
<SidebarButton href="/" selected={route == '/'}>
|
|
||||||
<Icon src={Home} solid={route == '/'} size="20" title="Frontpage" />
|
|
||||||
<span slot="label">Frontpage</span>
|
|
||||||
</SidebarButton>
|
|
||||||
<SidebarButton href="/settings" selected={route == '/settings'}>
|
|
||||||
<Icon
|
|
||||||
src={Cog6Tooth}
|
|
||||||
solid={route == '/settings'}
|
|
||||||
size="20"
|
|
||||||
title="Settings"
|
|
||||||
/>
|
|
||||||
<span slot="label">Settings</span>
|
|
||||||
</SidebarButton>
|
|
||||||
<SidebarButton href="/search" selected={route == '/search'}>
|
|
||||||
<Icon solid={route == '/search'} src={MagnifyingGlass} size="20" />
|
|
||||||
<span slot="label">Search</span>
|
|
||||||
</SidebarButton>
|
|
||||||
<SidebarButton href="/communities" selected={route == '/communities'}>
|
|
||||||
<Icon solid={route == '/communities'} src={GlobeAlt} size="20" />
|
|
||||||
<span slot="label">Communities</span>
|
|
||||||
</SidebarButton>
|
|
||||||
{#if $profile?.jwt}
|
|
||||||
<SidebarButton href="/inbox" selected={route == '/inbox'}>
|
|
||||||
<Icon solid={route == '/inbox'} src={Inbox} size="20" />
|
|
||||||
<span slot="label" class="inline-flex items-center flex-1">
|
|
||||||
<span class="flex-shrink-0 flex-1">Inbox</span>
|
|
||||||
{#if ($profile?.user?.notifications.inbox ?? 0) > 0}
|
|
||||||
<Badge
|
|
||||||
color="red-subtle"
|
|
||||||
class="w-5 h-5 !p-0 grid place-items-center"
|
|
||||||
>
|
|
||||||
{$profile?.user?.notifications.inbox}
|
|
||||||
</Badge>
|
|
||||||
{/if}
|
|
||||||
</span>
|
|
||||||
</SidebarButton>
|
|
||||||
{/if}
|
|
||||||
{#if $profileData.profiles.length >= 1}
|
{#if $profileData.profiles.length >= 1}
|
||||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||||
{#each [...$profileData.profiles] as prof, index (prof.id)}
|
{#each [...$profileData.profiles] as prof, index (prof.id)}
|
||||||
|
|||||||
Reference in new issue
Block a user