Skip to content

Commit b5ba23f

Browse files
committed
feat(app): improved collapsed navigation
1 parent cdd3481 commit b5ba23f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/App.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const links = [[{
3636
to: '/settings',
3737
icon: 'i-lucide-settings',
3838
defaultOpen: true,
39+
type: 'trigger',
3940
children: [{
4041
label: 'General',
4142
to: '/settings',
@@ -131,12 +132,19 @@ if (cookie.value !== 'accepted') {
131132
<template #default="{ collapsed }">
132133
<UDashboardSearchButton :collapsed="collapsed" class="bg-transparent ring-default" />
133134

134-
<UNavigationMenu :collapsed="collapsed" :items="links[0]" orientation="vertical" />
135+
<UNavigationMenu
136+
:collapsed="collapsed"
137+
:items="links[0]"
138+
orientation="vertical"
139+
tooltip
140+
popover
141+
/>
135142

136143
<UNavigationMenu
137144
:collapsed="collapsed"
138145
:items="links[1]"
139146
orientation="vertical"
147+
tooltip
140148
class="mt-auto"
141149
/>
142150
</template>

0 commit comments

Comments
 (0)