mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 17:24:48 +10:00
merge(adenmgb): library ui
Signed-off-by: DecDuck <declanahofmeyr@gmail.com>
This commit is contained in:
@@ -6,29 +6,22 @@
|
|||||||
v-for="(nav, navIdx) in navigation"
|
v-for="(nav, navIdx) in navigation"
|
||||||
:key="nav.route"
|
:key="nav.route"
|
||||||
:class="[
|
:class="[
|
||||||
'transition group rounded flex justify-between gap-x-6 py-2 px-3',
|
'transition-all duration-200 rounded-lg flex items-center py-1.5 px-3',
|
||||||
navIdx === currentNavigationIndex ? 'bg-zinc-900' : '',
|
navIdx === currentNavigationIndex
|
||||||
|
? 'bg-zinc-800 text-zinc-100'
|
||||||
|
: 'bg-zinc-900/50 text-zinc-400 hover:bg-zinc-800/70 hover:text-zinc-300',
|
||||||
]"
|
]"
|
||||||
:href="nav.route"
|
:href="nav.route"
|
||||||
>
|
>
|
||||||
<div class="flex items-center min-w-0 gap-x-2">
|
<div class="flex items-center w-full gap-x-3">
|
||||||
<img
|
<img
|
||||||
class="h-5 w-auto flex-none object-cover rounded-sm bg-zinc-900"
|
class="h-8 w-10 flex-none object-cover bg-zinc-900"
|
||||||
:src="icons[navIdx]"
|
:src="icons[navIdx]"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<div class="min-w-0 flex-auto">
|
<p class="truncate text-sm font-display leading-6 flex-1">
|
||||||
<p
|
{{ nav.label }}
|
||||||
:class="[
|
</p>
|
||||||
navIdx === currentNavigationIndex
|
|
||||||
? 'text-zinc-100'
|
|
||||||
: 'text-zinc-400 group-hover:text-zinc-300',
|
|
||||||
'truncate transition text-sm font-display leading-6',
|
|
||||||
]"
|
|
||||||
>
|
|
||||||
{{ nav.label }}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user