Skip to content

Commit 5a50c4f

Browse files
committed
fix: make quick actions style the same with list table three dots button
1 parent 6034fac commit 5a50c4f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
/>
120120
</td>
121121
<td class=" items-center px-2 md:px-3 lg:px-6 py-4 cursor-default" @click="(e)=>{e.stopPropagation()}">
122-
<div class="flex text-lightPrimary dark:text-darkPrimary items-center">
122+
<div class="flex text-lightPrimary dark:text-darkPrimary items-center gap-2">
123123
<Tooltip v-if="resource.options?.baseActionsAsQuickIcons && resource.options?.baseActionsAsQuickIcons.includes('show')">
124124
<RouterLink
125125
v-if="resource.options?.allowedActions?.show"
@@ -195,12 +195,13 @@
195195
>
196196
<button
197197
type="button"
198+
class="border border-gray-300 dark:border-gray-700 dark:border-opacity-0 border-opacity-0 hover:border-opacity-100 dark:hover:border-opacity-100 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 cursor-pointer"
198199
:disabled="rowActionLoadingStates?.[action.id]"
199200
>
200201
<component
201202
v-if="action.icon"
202203
:is="getIcon(action.icon)"
203-
class="w-5 h-5 mr-2 text-lightPrimary dark:text-darkPrimary"
204+
class="w-6 h-6 text-lightPrimary dark:text-darkPrimary"
204205
/>
205206
</button>
206207
</component>

adminforth/spa/src/components/ResourceListTableVirtual.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
/>
130130
</td>
131131
<td class=" items-center px-2 md:px-3 lg:px-6 py-4 cursor-default" @click="(e)=>{e.stopPropagation()}">
132-
<div class="flex text-lightPrimary dark:text-darkPrimary items-center">
132+
<div class="flex text-lightPrimary dark:text-darkPrimary items-center gap-2">
133133
<Tooltip v-if="resource.options?.baseActionsAsQuickIcons && resource.options?.baseActionsAsQuickIcons.includes('show')">
134134
<RouterLink
135135
v-if="resource.options?.allowedActions?.show"
@@ -208,12 +208,13 @@
208208
>
209209
<button
210210
type="button"
211+
class="border border-gray-300 dark:border-gray-700 dark:border-opacity-0 border-opacity-0 hover:border-opacity-100 dark:hover:border-opacity-100 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 cursor-pointer"
211212
:disabled="rowActionLoadingStates?.[action.id]"
212213
>
213214
<component
214215
v-if="action.icon"
215216
:is="getIcon(action.icon)"
216-
class="w-5 h-5 mr-2 text-lightPrimary dark:text-darkPrimary"
217+
class="w-6 h-6 text-lightPrimary dark:text-darkPrimary"
217218
/>
218219
</button>
219220
</component>

0 commit comments

Comments
 (0)