Skip to content

Commit

Permalink
fix(NavigationMenu): remove negative mb causing overflow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 29, 2025
1 parent 995e07d commit 5cda951
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 62 deletions.
3 changes: 1 addition & 2 deletions src/theme/navigation-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ export default (options: Required<ModuleOptions>) => ({
orientation: 'horizontal',
highlight: true,
class: {
item: '-mb-px',
link: ['after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full', options.theme.transitions && 'after:transition-colors']
link: ['after:absolute after:bottom-[calc(calc(var(--spacing)*-2)-1px)] after:inset-x-2.5 after:block after:h-px after:rounded-full', options.theme.transitions && 'after:transition-colors']
}
}, {
orientation: 'vertical',
Expand Down
Loading

0 comments on commit 5cda951

Please sign in to comment.