Skip to content

Commit 6c14057

Browse files
committed
fix: long navigation menu can be scrolled
* 修复超长的导航菜单无法纵向滚动的问题
1 parent afce9dc commit 6c14057

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@core/ui-kit/menu-ui/src/components/sub-menu.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ onBeforeUnmount(() => {
208208
nsMenu.e('popup-container'),
209209
is(rootMenu.theme, true),
210210
opened ? '' : 'hidden',
211+
'overflow-auto',
212+
'max-h-[calc(var(--radix-hover-card-content-available-height)-20px)]',
211213
]"
212214
:content-props="contentProps"
213215
:open="true"

0 commit comments

Comments
 (0)