fix: Splitter.Panel style is invalid (#51032)

This commit is contained in:
Wanpan 2024-09-27 09:33:55 +08:00 committed by GitHub
parent 79f2b635b5
commit 75df10fc07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,8 @@ const genSplitterStyle: GenerateStyle<SplitterToken> = (token: SplitterToken): C
} = token;
const splitBarCls = `${componentCls}-bar`;
const splitMaskCls = `${componentCls}-mask`;
const splitPanelCls = `${componentCls}-panel`;
const halfTriggerSize = token.calc(splitTriggerSize).div(2).equal();
@ -186,7 +188,7 @@ const genSplitterStyle: GenerateStyle<SplitterToken> = (token: SplitterToken): C
// =========================== Mask =========================
// Util dom for handle cursor
'&-mask': {
[splitMaskCls]: {
position: 'fixed',
zIndex: token.zIndexPopupBase,
inset: 0,
@ -302,13 +304,13 @@ const genSplitterStyle: GenerateStyle<SplitterToken> = (token: SplitterToken): C
},
// ========================= Panels =========================
'&-panel': {
[splitPanelCls]: {
overflow: 'auto',
padding: '0 1px',
scrollbarWidth: 'thin',
boxSizing: 'border-box',
},
'&-panel-hidden': {
[`${splitPanelCls}-hidden`]: {
padding: 0,
},