fix: mix usage should not scroll (#51169)

This commit is contained in:
二货爱吃白萝卜 2024-10-09 19:20:30 +08:00 committed by GitHub
parent 38197269b4
commit 9a4e554abe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,9 +309,15 @@ const genSplitterStyle: GenerateStyle<SplitterToken> = (token: SplitterToken): C
padding: '0 1px',
scrollbarWidth: 'thin',
boxSizing: 'border-box',
},
[`${splitPanelCls}-hidden`]: {
padding: 0,
'&-hidden': {
padding: 0,
overflow: 'hidden',
},
[`&:has(${componentCls}:only-child)`]: {
overflow: 'hidden',
},
},
...genRtlStyle(token),