Skip to content

Commit ff88274

Browse files
authored
fix: long navigation menu can be scrolled (#5939)
* 修复超长的导航菜单无法纵向滚动的问题
1 parent afce9dc commit ff88274

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

+2
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)