fix: long navigation menu can be scrolled (#5939)

* 修复超长的导航菜单无法纵向滚动的问题
This commit is contained in:
Netfan 2025-04-14 11:18:33 +08:00 committed by GitHub
parent afce9dc5c0
commit ff88274554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,6 +208,8 @@ onBeforeUnmount(() => {
nsMenu.e('popup-container'), nsMenu.e('popup-container'),
is(rootMenu.theme, true), is(rootMenu.theme, true),
opened ? '' : 'hidden', opened ? '' : 'hidden',
'overflow-auto',
'max-h-[calc(var(--radix-hover-card-content-available-height)-20px)]',
]" ]"
:content-props="contentProps" :content-props="contentProps"
:open="true" :open="true"