fix dropdown issues

This commit is contained in:
yogesh-gohil
2023-03-28 11:24:22 +05:30
parent 1749e34396
commit 973179a351
3 changed files with 7 additions and 5 deletions

View File

@ -69,6 +69,7 @@
<router-link :to="`/admin/payments/${row.id}/create`"> <router-link :to="`/admin/payments/${row.id}/create`">
<BaseDropdownItem <BaseDropdownItem
v-if="row.status == 'SENT' && route.name !== 'invoices.view'" v-if="row.status == 'SENT' && route.name !== 'invoices.view'"
v-slot="slotProps"
> >
<BaseIcon <BaseIcon
name="CreditCardIcon" name="CreditCardIcon"

View File

@ -125,13 +125,13 @@
justify-center justify-center
mr-3 mr-3
overflow-hidden overflow-hidden
text-base text-sm
font-semibold font-semibold
bg-gray-200 bg-gray-200
rounded-md rounded-md
w-9 w-9
h-9 h-9
text-primary-50 text-primary-500
dark:bg-gray-900 dark:bg-gray-900
" "
> >

View File

@ -2,7 +2,8 @@
<MenuItem v-slot="{ active }" v-bind="$attrs"> <MenuItem v-slot="{ active }" v-bind="$attrs">
<a <a
href="#" href="#"
class="group flex items-center px-4 py-2 text-sm font-normal" :class="[ class="group flex items-center px-4 py-2 text-sm font-normal"
:class="[
active active
? 'bg-gray-100 text-gray-900 dark:text-white dark:bg-gray-700' ? 'bg-gray-100 text-gray-900 dark:text-white dark:bg-gray-700'
: 'text-gray-700 dark:text-gray-200', : 'text-gray-700 dark:text-gray-200',
@ -15,6 +16,6 @@
<script setup> <script setup>
import { MenuItem } from '@headlessui/vue' import { MenuItem } from '@headlessui/vue'
const defaultIconClass const defaultIconClass =
= 'w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-white' 'w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-white'
</script> </script>