mirror of https://github.com/VERT-sh/VERT.git
fix mobile navbar again
This commit is contained in:
parent
44a96f715b
commit
1162082dc2
|
@ -138,14 +138,15 @@
|
|||
{#if linkRects[selectedIndex]}
|
||||
<div
|
||||
class="absolute bg-panel-accented rounded-xl"
|
||||
style="width: {linkRects[selectedIndex].width}px; height: {linkRects[selectedIndex].height}px; top: {linkRects[selectedIndex].top - (containerRect?.top || 0)}px; left: {linkRects[selectedIndex].left - (containerRect?.left || 0)}px; transition: left var(--transition) {duration}ms, top var(--transition) {duration}ms;"
|
||||
style="width: {linkRects[selectedIndex]
|
||||
.width}px; height: {linkRects[selectedIndex]
|
||||
.height}px; top: {linkRects[selectedIndex].top -
|
||||
(containerRect?.top || 0)}px; left: {linkRects[
|
||||
selectedIndex
|
||||
].left -
|
||||
(containerRect?.left ||
|
||||
0)}px; transition: left var(--transition) {duration}ms, top var(--transition) {duration}ms;"
|
||||
></div>
|
||||
{#if browser && window.innerWidth < 768}
|
||||
<div
|
||||
class="absolute bg-panel-accented rounded-xl"
|
||||
style="width: {linkRects[selectedIndex].width}px; height: {linkRects[selectedIndex].height / 2}px; bottom: {window.innerHeight - linkRects[selectedIndex].bottom}px; left: {linkRects[selectedIndex].left - (containerRect?.left || 0)}px; transition: left var(--transition) {duration}ms, bottom var(--transition) {duration}ms;"
|
||||
></div>
|
||||
{/if}
|
||||
{/if}
|
||||
<div
|
||||
class="w-32 h-full bg-accent rounded-xl items-center justify-center hidden md:flex"
|
||||
|
@ -157,10 +158,10 @@
|
|||
{#each items as item, i (item.url)}
|
||||
{@render link(item, i)}
|
||||
{/each}
|
||||
<div class="w-0.5 bg-separator h-full hidden md:flex"></div>
|
||||
<div class="w-0.5 bg-separator h-full flex"></div>
|
||||
<button
|
||||
onclick={theme.toggle}
|
||||
class="w-14 h-full items-center justify-center hidden md:flex"
|
||||
class="w-14 h-full items-center justify-center flex"
|
||||
>
|
||||
<SunIcon class="dynadark:hidden block" />
|
||||
<MoonIcon class="dynadark:block hidden" />
|
||||
|
|
Loading…
Reference in New Issue