mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
fix(Splitter): fix the issue about Splitter had unexpected gaps in Flex (#51096)
This commit is contained in:
parent
d5ef5f3f2c
commit
e8b0fc4925
@ -146,7 +146,6 @@ const Splitter: React.FC<React.PropsWithChildren<SplitterProps>> = (props) => {
|
||||
const mergedStyle: React.CSSProperties = { ...splitter?.style, ...style };
|
||||
|
||||
return wrapCSSVar(
|
||||
<>
|
||||
<ResizeObserver onResize={onContainerResize}>
|
||||
<div style={mergedStyle} className={containerClassName}>
|
||||
{items.map((item, idx) => {
|
||||
@ -197,14 +196,12 @@ const Splitter: React.FC<React.PropsWithChildren<SplitterProps>> = (props) => {
|
||||
</React.Fragment>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</ResizeObserver>
|
||||
|
||||
{/* Fake mask for cursor */}
|
||||
{typeof movingIndex === 'number' && (
|
||||
<div aria-hidden className={classNames(maskCls, `${maskCls}-${layout}`)} />
|
||||
)}
|
||||
</>,
|
||||
</div>
|
||||
</ResizeObserver>,
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user