fix(Tabs): handle icon margin in RTL mode (#2233)

This commit is contained in:
Malik-Jouda
2024-09-23 11:54:53 +03:00
committed by GitHub
parent 803c20ad92
commit ea05414930
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ const items = [{
<template>
<UTabs :items="items" class="w-full">
<template #icon="{ item, selected }">
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0 mr-2" :class="[selected && 'text-primary-500 dark:text-primary-400']" />
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0 me-2" :class="[selected && 'text-primary-500 dark:text-primary-400']" />
</template>
</UTabs>
</template>

View File

@@ -28,7 +28,7 @@ export default {
font: 'font-medium',
rounded: 'rounded-md',
shadow: '',
icon: 'w-4 h-4 flex-shrink-0 mr-2'
icon: 'w-4 h-4 flex-shrink-0 me-2'
}
}
}