Skip to content

Commit

Permalink
fix(Breadcrumb): missing min-w-0 on wrapper to truncate
Browse files Browse the repository at this point in the history
Resolves #1650
  • Loading branch information
benjamincanac committed Apr 11, 2024
1 parent c1d9e0e commit 9f01145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/ui.config/navigation/breadcrumb.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 9f01145

Please sign in to comment.