From 62bc7b25a2d205d8dffb47a109196f91ff3e823a Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 26 May 2025 17:46:46 +0200 Subject: [PATCH] fix(NavigationMenu): set content `max-height` in `horizontal` orientation Resolves #4208 --- src/theme/navigation-menu.ts | 2 +- test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap | 4 ++-- test/components/__snapshots__/NavigationMenu.spec.ts.snap | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/theme/navigation-menu.ts b/src/theme/navigation-menu.ts index 694d0129..0f5d4436 100644 --- a/src/theme/navigation-menu.ts +++ b/src/theme/navigation-menu.ts @@ -60,7 +60,7 @@ export default (options: Required) => ({ childList: 'grid p-2', childLink: 'px-3 py-2 gap-2 before:inset-x-px before:inset-y-0', childLinkLabel: 'font-medium', - content: 'absolute top-0 left-0 w-full' + content: 'absolute top-0 left-0 w-full max-h-[70vh] overflow-y-auto' }, vertical: { root: 'flex-col', diff --git a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap index 97f2504c..098ac431 100644 --- a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap +++ b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap @@ -1327,7 +1327,7 @@ exports[`NavigationMenu > renders with unmountOnHide correctly 1`] = `