From 67ea84a0fbbe5c2d7f17cbd68474bb75fdb2b20e Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:16:52 -0700 Subject: [PATCH] fix: restore worktree sidebar scroll viewport (#688) --- src/renderer/src/App.tsx | 11 +++++++++-- src/renderer/src/components/sidebar/index.tsx | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 8eefa02446c..063f41240b0 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -721,7 +721,7 @@ function App(): React.JSX.Element { layout so the terminal/editor reclaim the left edge instead of leaving behind a content-width blank strip. */
{titlebarLeftControls}
- +
+ {/* Why: the workspace-view wrapper adds a fixed 42px header + above the sidebar. Without a flex-1/min-h-0 slot here, + the sidebar falls back to its content height, so the + worktree list loses its scroll viewport and the fixed + bottom toolbar (including Add Repo) gets pushed offscreen. */} + +
) : ( diff --git a/src/renderer/src/components/sidebar/index.tsx b/src/renderer/src/components/sidebar/index.tsx index d0779fa0d48..b65aed7eade 100644 --- a/src/renderer/src/components/sidebar/index.tsx +++ b/src/renderer/src/components/sidebar/index.tsx @@ -47,7 +47,7 @@ function Sidebar(): React.JSX.Element {