Skip to content

Commit 9ae034d

Browse files
authored
fix(ui): right resize handle no longer covers scrollbar (#354) (#465)
Commit 3ac3d5b swapped the touch area bias so side="right" extended 8px leftward into the content area, covering the 6px scrollbar. Changed to `left-0 -right-3` so the touch target has zero left encroachment and extends entirely into the sidebar panel instead. For provenance purposes, this commit was AI assisted.
1 parent c8b9daf commit 9ae034d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/ui/components/ResizeHandle.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type { ResizeHandleProps as BaseProps } from '../hooks/useResizablePanel'
33

44
interface Props extends BaseProps {
55
className?: string;
6-
/** Controls which direction the touch area extends to avoid covering adjacent scrollbars.
7-
* 'left' = handle is on the right edge of the left sidebar, touch area extends leftward.
8-
* 'right' = handle is on the left edge of the right panel, touch area extends rightward. */
6+
/** Touch area extends rightward to avoid covering scrollbars on the right
7+
* edge of the left-adjacent panel. 'right' uses zero left encroachment
8+
* since the scrollbar is immediately adjacent; 'left' allows slight overlap. */
99
side?: 'left' | 'right';
1010
}
1111

@@ -28,7 +28,7 @@ export const ResizeHandle: React.FC<Props> = ({
2828
<div
2929
className={`absolute inset-y-0 ${
3030
side === 'left' ? '-right-2 -left-1' :
31-
side === 'right' ? '-left-2 -right-1' :
31+
side === 'right' ? '-right-3 left-0' :
3232
'-inset-x-2'
3333
}`}
3434
onMouseDown={onMouseDown}

0 commit comments

Comments
 (0)