fix: Dropdown cannot wrap correctly when out of screen edge (#50752)

This commit is contained in:
afc163 2024-09-07 21:48:09 +08:00 committed by GitHub
parent 61e365f313
commit ac5bb7cbeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,7 +256,7 @@ const genBaseStyle: GenerateStyle<DropdownToken> = (token) => {
// =========================== Item ===========================
[`${menuCls}-item, ${menuCls}-submenu-title`]: {
clear: 'both',
display: 'flex',
margin: 0,
padding: `${unit(paddingBlock!)} ${unit(controlPaddingHorizontal)}`,
color: token.colorText,