Skip to content

Commit b12c810

Browse files
committed
chore: wip
1 parent 49f1295 commit b12c810

File tree

1 file changed

+14
-5
lines changed
  • storage/framework/defaults/components/Dashboard

1 file changed

+14
-5
lines changed

storage/framework/defaults/components/Dashboard/Sidebar.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const sectionContent: Record<string, SectionContent> = {
189189
},
190190
data: {
191191
items: [
192-
{ to: '/models', icon: 'i-hugeicons-dashboard-speed-02', text: 'General' },
192+
{ to: '/models', icon: 'i-hugeicons-dashboard-browsing', text: 'Dashboard' },
193193
{ to: '/models/users', letter: 'U', text: 'Users' },
194194
{ to: '/models/teams', letter: 'T', text: 'Teams' },
195195
{ to: '/models/subscribers', letter: 'S', text: 'Subscribers' }
@@ -411,11 +411,12 @@ const switchTeam = (team: Team) => {
411411
<ul
412412
v-if="item.children"
413413
role="list"
414-
class="mt-1 space-y-1 overflow-y-auto"
414+
class="mt-1 space-y-1 overflow-hidden transition-all duration-300"
415415
:class="{
416-
'h-0 overflow-hidden': !expandedItems[item.to],
417-
'h-auto max-h-40': expandedItems[item.to] && item.children.length <= 3,
418-
'h-auto max-h-[2000px]': expandedItems[item.to] && item.children.length > 3
416+
'max-h-0 opacity-0': !expandedItems[item.to],
417+
'max-h-40 opacity-100': expandedItems[item.to] && item.children.length <= 3 && item.to !== '#commerce',
418+
'commerce-dropdown': expandedItems[item.to] && item.to === '#commerce',
419+
'queue-dropdown': expandedItems[item.to] && item.to === '#queue'
419420
}"
420421
>
421422
<li v-for="child in item.children" :key="child.to">
@@ -568,4 +569,12 @@ li[draggable="true"].dragging .drag-handle {
568569
.no-active div[class^="i-hugeicons"] {
569570
@apply !text-gray-400 dark:!text-gray-200;
570571
}
572+
573+
.commerce-dropdown {
574+
@apply max-h-[800px] opacity-100;
575+
}
576+
577+
.queue-dropdown {
578+
@apply max-h-40 opacity-100;
579+
}
571580
</style>

0 commit comments

Comments
 (0)