Skip to content

Commit

Permalink
fix(NavigationMenu): add missing min-w-0 to make truncate work (#2476)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 authored Oct 28, 2024
1 parent 75410fb commit 1402436
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/theme/navigation-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ModuleOptions } from '../module'

export default (options: Required<ModuleOptions>) => ({
slots: {
root: 'relative flex gap-1.5',
root: 'relative flex gap-1.5 [&>div]:min-w-0',
list: 'isolate min-w-0',
item: 'min-w-0',
link: 'group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-[calc(var(--ui-radius)*1.5)] focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2',
Expand Down
Loading

0 comments on commit 1402436

Please sign in to comment.