adminforth 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,15 +93,20 @@
|
|
|
93
93
|
<IconChevronDown :class="{'rotate-180': opened.includes(i) }" class="w-3 h-3 text-lightSidebarIcons dark:text-darkSidebarIcons transition-transform duration-200" aria-hidden="true" />
|
|
94
94
|
</button>
|
|
95
95
|
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
<div class="grid transition-[grid-template-rows,opacity] duration-200 ease-in-out"
|
|
97
|
+
:class="opened.includes(i) ? 'grid-rows-[1fr] opacity-100' : 'grid-rows-[0fr] opacity-0'"
|
|
98
|
+
:inert="!opened.includes(i)"
|
|
99
|
+
>
|
|
100
|
+
<div class="min-h-0 overflow-hidden">
|
|
101
|
+
<ul :id="`dropdown-example${i}`" role="none" class="af-sidebar-dropdown mt-0.5 ml-[1.25rem] pl-2 border-l border-lightSidebarDevider dark:border-darkSidebarDevider space-y-0.5">
|
|
102
|
+
<template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
|
|
103
|
+
<li class="af-sidebar-menu-link">
|
|
104
|
+
<MenuLink :item="child" isChild="true" @click="$emit('hideSidebar')"/>
|
|
105
|
+
</li>
|
|
106
|
+
</template>
|
|
107
|
+
</ul>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
105
110
|
</li>
|
|
106
111
|
<li v-else class="af-sidebar-menu-link">
|
|
107
112
|
<MenuLink :item="item" @click="$emit('hideSidebar')"/>
|
|
@@ -295,25 +300,6 @@
|
|
|
295
300
|
background-color: rgba(75, 85, 99, 0.4);
|
|
296
301
|
}
|
|
297
302
|
|
|
298
|
-
/* Custom animation for dropdown */
|
|
299
|
-
.slow-drop-enter-active,
|
|
300
|
-
.slow-drop-leave-active {
|
|
301
|
-
overflow: hidden;
|
|
302
|
-
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.slow-drop-enter-from,
|
|
306
|
-
.slow-drop-leave-to {
|
|
307
|
-
opacity: 0;
|
|
308
|
-
transform: translateY(-4px);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.slow-drop-enter-to,
|
|
312
|
-
.slow-drop-leave-from {
|
|
313
|
-
opacity: 1;
|
|
314
|
-
transform: translateY(0);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
303
|
/* For browsers that support overlay scrollbars natively */
|
|
318
304
|
@supports (overflow: overlay) {
|
|
319
305
|
.sidebar-scroll {
|