From 8f7066d1941debf6b917bc8440820e11f45ee932 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 2 Jun 2026 01:17:09 +0200 Subject: [PATCH] fix: close pane gaps by centering resize handle on the seam --- components/layout/resize-handle.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/layout/resize-handle.tsx b/components/layout/resize-handle.tsx index 6a5e56a8..3a2a0c50 100644 --- a/components/layout/resize-handle.tsx +++ b/components/layout/resize-handle.tsx @@ -77,9 +77,11 @@ export function ResizeHandle({ onResizeStart, onResize, onResizeEnd, onDoubleCli onKeyDown={handleKeyDown} onDoubleClick={onDoubleClick} className={cn( - "flex-shrink-0 hover:bg-primary/30 active:bg-primary/50 transition-colors relative group", + // Centered over the seam with negative margins so the handle adds no + // net layout space (panes sit flush) while staying draggable. + "flex-shrink-0 hover:bg-primary/30 active:bg-primary/50 transition-colors relative group z-10", "focus-visible:outline-none focus-visible:bg-primary/40 focus-visible:ring-2 focus-visible:ring-primary/50", - isHorizontal ? "h-1 cursor-row-resize bg-border" : "w-1 cursor-col-resize", + isHorizontal ? "h-1 -my-0.5 cursor-row-resize bg-border" : "w-1 -mx-0.5 cursor-col-resize", className )} >