Skip to content

A self-hosted media server and file management system

fix: dropdown layers

aminnausinbb10798ad3b7
diff --git a/resources/js/components/cedar-ui/dropdown-menu/DropdownItem.vue b/resources/js/components/cedar-ui/dropdown-menu/DropdownItem.vue
index 98a62e6f..fa29394c 100644
--- a/resources/js/components/cedar-ui/dropdown-menu/DropdownItem.vue
+++ b/resources/js/components/cedar-ui/dropdown-menu/DropdownItem.vue
@@ -22,7 +22,7 @@ const wrapperProps = computed(() => {
<ButtonBase
role="menuitem"
v-bind="wrapperProps"
- :class="['hover:bg-overlay-accent relative w-full rounded-sm px-2 py-1.5 text-sm select-none', { 'text-primary dark:text-primary-muted font-bold': selected }]"
+ :class="['hover:bg-overlay-accent w-full rounded-sm px-2 py-1.5 text-sm select-none', { 'text-primary dark:text-primary-muted font-bold': selected }]"
:disabled="disabled"
:title="linkData.title"
>
@@ -36,7 +36,7 @@ const wrapperProps = computed(() => {
</slot>
</span>
- <span v-if="!linkData.shortcut || typeof linkData.shortcut === 'string'" class="text-xs tracking-widest opacity-60" :title="linkData.shortcutTitle">
+ <span v-if="!linkData.shortcut || typeof linkData.shortcut === 'string'" class="text-foreground-1 text-xs tracking-widest" :title="linkData.shortcutTitle">
{{ linkData.shortcut }}
</span>
<component v-else :is="linkData.shortcut" class=""></component>
diff --git a/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue b/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue
index b00b9380..36052631 100644
--- a/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue
+++ b/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue
@@ -73,7 +73,7 @@ onUnmounted(() => {
{{ userData.email }}
</div>
<div class="bg-hr -mx-1 my-1 h-px" v-if="userData"></div>
- <section v-for="(group, groupIndex) in dropDownItems" :key="groupIndex">
+ <div v-for="(group, groupIndex) in dropDownItems" :key="groupIndex">
<div v-if="groupIndex !== 0 && groupIndex !== group.length && group.some((item) => !item.hidden)" class="bg-hr -mx-1 my-1 h-px"></div>
<DropdownItem
v-for="(item, index) in group.filter((item) => !item.hidden)"
@@ -93,7 +93,7 @@ onUnmounted(() => {
<component :is="item.icon" :class="['size-4', item.iconStrokeWidth ? `[&>*]:stroke-[${item.iconStrokeWidth}]` : '']" />
</template>
</DropdownItem>
- </section>
+ </div>
</div>
</div>
</Transition>