layout: tweak order of nav elements
This commit is contained in:
1 parent
e9ee618642
commit
3bd0b066a3
2 files changed
+15
-11
No files matched your search
@@ -48,20 +48,21 @@
|
|||||||
{$userSettings.dock.top ? 'top-0' : 'bottom-0'}
|
{$userSettings.dock.top ? 'top-0' : 'bottom-0'}
|
||||||
{topPanel ? 'fixed top-0' : 'fixed'}
|
{topPanel ? 'fixed top-0' : 'fixed'}
|
||||||
w-full z-50 pointer-events-none"
|
w-full z-50 pointer-events-none"
|
||||||
style="grid-area: navbar;"
|
style="grid-area: navbar; transition: padding 250ms cubic-bezier(0.075, 0.82, 0.165, 1);"
|
||||||
>
|
>
|
||||||
<slot
|
<slot
|
||||||
name="navbar"
|
name="navbar"
|
||||||
class="
|
class="
|
||||||
{$userSettings.dock.noGap
|
{$userSettings.dock.noGap
|
||||||
? $userSettings.dock.top
|
? $userSettings.dock.top
|
||||||
? 'border-b shadow-none'
|
? 'border-b shadow-none rounded-none'
|
||||||
: 'border-t'
|
: 'border-t rounded-none'
|
||||||
: 'border rounded-full'}
|
: 'border rounded-full'}
|
||||||
border-slate-200 dark:border-zinc-800 shadow-2xl
|
border-slate-200 dark:border-zinc-800 shadow-2xl
|
||||||
backdrop-blur-xl dark:backdrop-brightness-[25%] bg-[#ffffff]/75 dark:bg-transparent transition-colors duration-500
|
backdrop-blur-xl dark:backdrop-brightness-[25%] bg-[#ffffff]/75 dark:bg-transparent transition-colors duration-500
|
||||||
pointer-events-auto"
|
pointer-events-auto"
|
||||||
{title}
|
{title}
|
||||||
|
style="transition: border-radius 250ms;"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
import { flip } from 'svelte/animate'
|
import { flip } from 'svelte/animate'
|
||||||
import SearchBar from '$lib/components/lemmy/util/SearchBar.svelte'
|
import SearchBar from '$lib/components/lemmy/util/SearchBar.svelte'
|
||||||
import { swipeGesture } from '$lib/input/swipe'
|
import { swipeGesture } from '$lib/input/swipe'
|
||||||
|
import Logo from '../Logo.svelte'
|
||||||
|
|
||||||
let searching = false
|
let searching = false
|
||||||
</script>
|
</script>
|
||||||
@@ -38,6 +39,9 @@
|
|||||||
"
|
"
|
||||||
style={$$props.style}
|
style={$$props.style}
|
||||||
>
|
>
|
||||||
|
<NavButton href="/" label="Home" class="ml-2 logo">
|
||||||
|
<Logo width={32} slot="icon" />
|
||||||
|
</NavButton>
|
||||||
{#if searching}
|
{#if searching}
|
||||||
<div
|
<div
|
||||||
class="w-full h-full absolute z-20 p-2 flex items-center gap-2 bg-white dark:bg-zinc-950
|
class="w-full h-full absolute z-20 p-2 flex items-center gap-2 bg-white dark:bg-zinc-950
|
||||||
@@ -72,13 +76,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex flex-row gap-2 py-2 px-2 items-center w-full">
|
<div class="flex flex-row gap-2 py-2 px-2 items-center w-full">
|
||||||
<Profile
|
|
||||||
placement="top"
|
|
||||||
itemsClass="h-8 md:h-8 z-10"
|
|
||||||
targetClass="z-10 h-10"
|
|
||||||
containerClass="!max-h-[28rem] z-10"
|
|
||||||
buttonClass=""
|
|
||||||
/>
|
|
||||||
{#if $profile}
|
{#if $profile}
|
||||||
<div
|
<div
|
||||||
class="px-2 border-r border-l border-slate-200 dark:border-zinc-900
|
class="px-2 border-r border-l border-slate-200 dark:border-zinc-900
|
||||||
@@ -178,7 +175,6 @@
|
|||||||
label="Search"
|
label="Search"
|
||||||
icon={MagnifyingGlass}
|
icon={MagnifyingGlass}
|
||||||
/>
|
/>
|
||||||
<NavButton href="/" label="Home" icon={Home} />
|
|
||||||
<Menu placement="top">
|
<Menu placement="top">
|
||||||
<NavButton
|
<NavButton
|
||||||
class="relative"
|
class="relative"
|
||||||
@@ -213,5 +209,12 @@
|
|||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</Menu>
|
</Menu>
|
||||||
|
<Profile
|
||||||
|
placement="top"
|
||||||
|
itemsClass="h-8 md:h-8 z-10"
|
||||||
|
targetClass="z-10 h-10"
|
||||||
|
containerClass="!max-h-[28rem] z-10"
|
||||||
|
buttonClass=""
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
Reference in new issue
Block a user