Skip to content

Commit 6dc1d6e

Browse files
author
Aman Kumar
committed
fix: Nested col-resize and row-resize icon
1 parent 11d25c1 commit 6dc1d6e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/core/src/components/DragHandle.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ export const DragHandle: React.FC<DragHandleProps> = ({
8686
const hideGrip = leftPaneCollapsed || rightPaneCollapsed;
8787

8888
return (
89-
<div
90-
className={handlebarClass}
91-
onMouseDown={(e) => !disabled && onMouseDown(e)}
92-
onTouchStart={(e) => !disabled && onMouseDown(e)}
93-
style={{ cursor: disabled ? 'default' : isHorizontal ? 'col-resize' : 'row-resize' }}
94-
>
89+
<div className={handlebarClass} onMouseDown={(e) => !disabled && onMouseDown(e)} onTouchStart={(e) => !disabled && onMouseDown(e)}>
9590
{showButtons && (
9691
<>
9792
<button

packages/core/src/components/Split.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ export const Split = forwardRef<SplitRef, SplitProps>((props, ref) => {
336336
element.style.cursor = 'default';
337337
} else {
338338
element.classList.remove('a-split-handlebar-disabled');
339-
element.style.cursor = mode === 'horizontal' ? 'col-resize' : 'row-resize';
340339
}
341340

342341
const isVisible = isHandlebarVisible(handlebarIndex, visible);

0 commit comments

Comments
 (0)