fix(Breadcrumb): missing min-w-0 on wrapper to truncate

Resolves #1650
This commit is contained in:
Benjamin Canac
2024-04-11 21:52:07 +02:00
parent c1d9e0ecd4
commit 9f01145bc6
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ const links = [{
<template>
<UBreadcrumb :links="links">
<template #default="{ link, isActive, index }">
<UBadge :color="isActive ? 'primary' : 'gray'" class="rounded-full">
<UBadge :color="isActive ? 'primary' : 'gray'" class="rounded-full truncate">
{{ index + 1 }}. {{ link.label }}
</UBadge>
</template>

View File

@@ -1,5 +1,5 @@
export default {
wrapper: 'relative',
wrapper: 'relative min-w-0',
ol: 'flex items-center gap-x-1.5',
li: 'flex items-center gap-x-1.5 text-gray-500 dark:text-gray-400 text-sm leading-6 min-w-0',
base: 'flex items-center gap-x-1.5 group font-semibold min-w-0',