From fa3d7bfd9a7a00eef0c47ad09543132cfc35fd93 Mon Sep 17 00:00:00 2001 From: Lambda Date: Sat, 11 Jul 2026 14:24:30 +0800 Subject: [PATCH] fix(issues): keep detail content column centered under classic scrollbars On platforms where scrollbars take layout space (macOS with a mouse or 'always show', Windows, Linux), the global 'scrollbar-width: thin' reserves ~11px on the right edge of the issue detail scroll container only, so the centered max-w-4xl column reads 32px left vs 43px right whitespace. Mirror the gutter with 'scrollbar-gutter: stable both-edges' on the detail scroller and its loading skeleton; overlay-scrollbar platforms reserve nothing and are unchanged. Measured before: 32px / 43px. After: 43px / 43px. --- packages/views/issues/components/issue-detail.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx index 474887acc9..52b7a32aba 100644 --- a/packages/views/issues/components/issue-detail.tsx +++ b/packages/views/issues/components/issue-detail.tsx @@ -1420,7 +1420,9 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
-
+ {/* Same scrollbar-gutter as the loaded scroller below, so the skeleton + column doesn't shift sideways when real content mounts. */} +
@@ -1952,10 +1954,16 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr } /> + {/* scrollbar-gutter both-edges: with classic (space-taking) scrollbars — + macOS with a mouse or "always show", Windows, Linux — the global + `scrollbar-width: thin` carves ~11px off the right side only, so the + centered column reads 32px left vs 43px right (MUL-4404). Mirroring + the gutter restores symmetry; overlay-scrollbar platforms reserve + nothing and render unchanged. */}