Skip to content

Commit 2269d81

Browse files
committed
Merge branch 'next' of github.com:devforth/adminforth into next
2 parents 226c694 + 61006df commit 2269d81

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,24 @@
4444
</div>
4545
</li>
4646
<li v-for="action in customActions" :key="action.id">
47-
<component
48-
:is="(action.customComponent && getCustomComponent(action.customComponent)) || CallActionWrapper"
49-
:meta="action.customComponent?.meta"
50-
@callAction="(payload? : Object) => handleActionClick(action, payload)"
51-
>
52-
<a href="#" @click.prevent class="block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover">
53-
<div class="flex items-center gap-2">
54-
<component
55-
v-if="action.icon"
56-
:is="getIcon(action.icon)"
57-
class="w-4 h-4 text-lightPrimary dark:text-darkPrimary"
58-
/>
59-
{{ action.name }}
60-
</div>
61-
</a>
62-
</component>
47+
<div class="wrapper">
48+
<component
49+
:is="(action.customComponent && getCustomComponent(action.customComponent)) || CallActionWrapper"
50+
:meta="action.customComponent?.meta"
51+
@callAction="(payload? : Object) => handleActionClick(action, payload)"
52+
>
53+
<a href="#" @click.prevent class="block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover">
54+
<div class="flex items-center gap-2">
55+
<component
56+
v-if="action.icon"
57+
:is="getIcon(action.icon)"
58+
class="w-4 h-4 text-lightPrimary dark:text-darkPrimary"
59+
/>
60+
{{ action.name }}
61+
</div>
62+
</a>
63+
</component>
64+
</div>
6365
</li>
6466
<li v-for="action in (bulkActions ?? []).filter(a => a.showInThreeDotsDropdown)" :key="action.id">
6567
<a href="#" @click.prevent="startBulkAction(action.id)"

0 commit comments

Comments
 (0)