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'}
|
||||
{topPanel ? 'fixed top-0' : 'fixed'}
|
||||
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
|
||||
name="navbar"
|
||||
class="
|
||||
{$userSettings.dock.noGap
|
||||
? $userSettings.dock.top
|
||||
? 'border-b shadow-none'
|
||||
: 'border-t'
|
||||
? 'border-b shadow-none rounded-none'
|
||||
: 'border-t rounded-none'
|
||||
: 'border rounded-full'}
|
||||
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
|
||||
pointer-events-auto"
|
||||
{title}
|
||||
style="transition: border-radius 250ms;"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
import { flip } from 'svelte/animate'
|
||||
import SearchBar from '$lib/components/lemmy/util/SearchBar.svelte'
|
||||
import { swipeGesture } from '$lib/input/swipe'
|
||||
import Logo from '../Logo.svelte'
|
||||
|
||||
let searching = false
|
||||
</script>
|
||||
@@ -38,6 +39,9 @@
|
||||
"
|
||||
style={$$props.style}
|
||||
>
|
||||
<NavButton href="/" label="Home" class="ml-2 logo">
|
||||
<Logo width={32} slot="icon" />
|
||||
</NavButton>
|
||||
{#if searching}
|
||||
<div
|
||||
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>
|
||||
{/if}
|
||||
<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}
|
||||
<div
|
||||
class="px-2 border-r border-l border-slate-200 dark:border-zinc-900
|
||||
@@ -178,7 +175,6 @@
|
||||
label="Search"
|
||||
icon={MagnifyingGlass}
|
||||
/>
|
||||
<NavButton href="/" label="Home" icon={Home} />
|
||||
<Menu placement="top">
|
||||
<NavButton
|
||||
class="relative"
|
||||
@@ -213,5 +209,12 @@
|
||||
</span>
|
||||
{/if}
|
||||
</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>
|
||||
</nav>
|
||||
Reference in new issue
Block a user