mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
fix(Tabs): handle icon margin in RTL mode (#2233)
This commit is contained in:
@@ -17,7 +17,7 @@ const items = [{
|
|||||||
<template>
|
<template>
|
||||||
<UTabs :items="items" class="w-full">
|
<UTabs :items="items" class="w-full">
|
||||||
<template #icon="{ item, selected }">
|
<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>
|
</template>
|
||||||
</UTabs>
|
</UTabs>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
font: 'font-medium',
|
font: 'font-medium',
|
||||||
rounded: 'rounded-md',
|
rounded: 'rounded-md',
|
||||||
shadow: '',
|
shadow: '',
|
||||||
icon: 'w-4 h-4 flex-shrink-0 mr-2'
|
icon: 'w-4 h-4 flex-shrink-0 me-2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user