feat: switch to svh
This commit is contained in:
1 parent
5c04bdb677
commit
d59060ab35
6 files changed
+19
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<aside
|
||||
class="sticky top-16 break-words flex
|
||||
flex-col gap-4 p-6 max-w-[20rem] min-w-[18rem] max-h-[calc(100vh-4rem)]
|
||||
flex-col gap-4 p-6 max-w-[20rem] min-w-[18rem] max-h-[calc(100svh-4rem)]
|
||||
overflow-auto text-sm border-l border-slate-200 dark:border-zinc-800 {$$props.class}"
|
||||
>
|
||||
<slot />
|
||||
|
||||
@@ -21,20 +21,23 @@
|
||||
|
||||
<nav
|
||||
class="hidden sm:flex flex-col pl-4 pr-4 py-4 overflow-auto sticky top-16 bottom-0
|
||||
gap-1 max-h-[calc(100vh-4rem)] w-full bg-slate-100 dark:bg-black
|
||||
gap-1 max-h-[calc(100svh-4rem)] w-full bg-slate-100 dark:bg-black
|
||||
{$userSettings.expandSidebar
|
||||
? 'max-w-[25%] resize-x min-w-[12rem]'
|
||||
: 'w-max max-w-max min-w-max'}"
|
||||
>
|
||||
<Button
|
||||
on:click={() => ($userSettings.expandSidebar = !$userSettings.expandSidebar)}
|
||||
on:click={() =>
|
||||
($userSettings.expandSidebar = !$userSettings.expandSidebar)}
|
||||
class="w-max !p-2 hover:bg-slate-200"
|
||||
>
|
||||
<Icon
|
||||
src={ChevronDoubleLeft}
|
||||
mini
|
||||
size="16"
|
||||
class="transition-transform {$userSettings.expandSidebar ? '' : 'rotate-180'}"
|
||||
class="transition-transform {$userSettings.expandSidebar
|
||||
? ''
|
||||
: 'rotate-180'}"
|
||||
title="Toggle Sidebar"
|
||||
/>
|
||||
</Button>
|
||||
@@ -58,10 +61,9 @@
|
||||
invalidateAll: true,
|
||||
})
|
||||
}}
|
||||
class="hover:bg-slate-200 {$userSettings.expandSidebar ? '' : '!p-1.5'} {$profile?.id ==
|
||||
prof.id
|
||||
? 'font-bold'
|
||||
: ''}"
|
||||
class="hover:bg-slate-200 {$userSettings.expandSidebar
|
||||
? ''
|
||||
: '!p-1.5'} {$profile?.id == prof.id ? 'font-bold' : ''}"
|
||||
>
|
||||
<Icon
|
||||
src={UserCircle}
|
||||
@@ -71,7 +73,10 @@
|
||||
class="text-blue-500"
|
||||
style="filter: hue-rotate({index * 50}deg)"
|
||||
/>
|
||||
<span class:hidden={!$userSettings.expandSidebar} class="flex flex-col gap-0">
|
||||
<span
|
||||
class:hidden={!$userSettings.expandSidebar}
|
||||
class="flex flex-col gap-0"
|
||||
>
|
||||
{prof.username}
|
||||
<span class="text-slate-500 dark:text-zinc-400 font-normal text-xs">
|
||||
{prof.instance}
|
||||
|
||||
Reference in new issue
Block a user