Skip to content

A self-hosted media server and file management system

fix: dropdown menu group separators do not work

aminnausinbcc5e06a8bc5
diff --git a/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue b/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue
index ae177ac3..23ef6141 100644
--- a/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue
+++ b/resources/js/components/cedar-ui/dropdown-menu/DropdownMenu.vue
@@ -73,8 +73,8 @@ onUnmounted(() => {
{{ userData.email }}
</div>
<div class="bg-hr -mx-1 my-1 h-px" v-if="userData"></div>
- <div v-for="(group, groupIndex) in dropDownItems" :key="groupIndex">
- <div v-if="groupIndex !== 0 && groupIndex !== group.length - 1 && group.some((item) => !item.hidden)" class="bg-hr -mx-1 my-1 h-px"></div>
+ <template v-for="(group, groupIndex) in dropDownItems" :key="groupIndex">
+ <div v-if="groupIndex !== 0 && 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)"
:key="index"
@@ -93,7 +93,7 @@ onUnmounted(() => {
<component :is="item.icon" :class="['size-4', item.iconStrokeWidth ? `[&>*]:stroke-[${item.iconStrokeWidth}]` : '']" />
</template>
</DropdownItem>
- </div>
+ </template>
</div>
</div>
</Transition>