mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
fix: Splitter.Panel style is invalid (#51032)
This commit is contained in:
parent
79f2b635b5
commit
75df10fc07
@ -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,
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user