Skip to content

Commit 37ff491

Browse files
author
Pavlo Kulyk
committed
fix: remove openToRight prop from ThreeDotsMenu and adjust dropdown positioning logic
1 parent 78ca66b commit 37ff491

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
:class="{
1717
'block': showDropdown,
1818
'hidden': !showDropdown,
19-
'left-0 md:left-auto': props.openToRight,
20-
'right-0': !props.openToRight}"
19+
'left-0 md:left-auto': checkboxes && checkboxes.length > 0
20+
}"
2121
class="absolute z-30 mt-3 bg-lightThreeDotsMenuBodyBackground divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-darkThreeDotsMenuBodyBackground dark:divide-gray-600 right-0 md:right-0">
2222
<ul class="py-2 text-sm text-lightThreeDotsMenuBodyText dark:text-darkThreeDotsMenuBodyText" aria-labelledby="dropdownMenuIconButton">
2323
<li v-for="(item, i) in threeDotsDropdownItems" :key="`dropdown-item-${i}`">
@@ -110,11 +110,6 @@ const props = defineProps({
110110
customActions: Array<AdminForthActionInput>,
111111
bulkActions: Array<AdminForthBulkActionCommon>,
112112
checkboxes: Array,
113-
openToRight: {
114-
type: Boolean,
115-
default: false
116-
},
117-
118113
updateList: {
119114
type: Function,
120115
},

adminforth/spa/src/views/ListView.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
:threeDotsDropdownItems="(coreStore.resourceOptions?.pageInjections?.list?.threeDotsDropdownItems as [])"
105105
:bulkActions="coreStore.resource?.options?.bulkActions"
106106
:checkboxes="checkboxes"
107-
:openToRight="checkboxes.length > 0"
108107
@startBulkAction="startBulkAction"
109108
:updateList="getList"
110109
:clearCheckboxes="clearCheckboxes"

0 commit comments

Comments
 (0)