From 519b19ce4ee2bf4ffd70855c2eb89203055c5eb9 Mon Sep 17 00:00:00 2001 From: Kiet Ho Date: Tue, 3 Feb 2026 13:53:28 -0800 Subject: [PATCH] fix(desktop): fix flex layout for sidebar views to enable scrolling Use flex-1 min-h-0 instead of h-full for proper flex child sizing. Wrap ContextMenu in a flex container since it doesn't participate in flex layout. --- .../RightSidebar/ChangesView/ChangesView.tsx | 2 +- .../RightSidebar/FilesView/FilesView.tsx | 34 ++++++++++--------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/apps/desktop/src/renderer/screens/main/components/WorkspaceView/RightSidebar/ChangesView/ChangesView.tsx b/apps/desktop/src/renderer/screens/main/components/WorkspaceView/RightSidebar/ChangesView/ChangesView.tsx index 05394d38b9d..ee48af8bdb7 100644 --- a/apps/desktop/src/renderer/screens/main/components/WorkspaceView/RightSidebar/ChangesView/ChangesView.tsx +++ b/apps/desktop/src/renderer/screens/main/components/WorkspaceView/RightSidebar/ChangesView/ChangesView.tsx @@ -323,7 +323,7 @@ export function ChangesView({ onFileOpen, isExpandedView }: ChangesViewProps) { const prUrl = githubStatus?.pr?.url; return ( -
+
+
- - -
+
+ + +
{newItemMode && newItemParentPath === worktreePath && ( )}
-
- - handleNewFile(worktreePath)}> - - New File - - handleNewFolder(worktreePath)}> - - New Folder - - -
+ + + handleNewFile(worktreePath)}> + + New File + + handleNewFolder(worktreePath)}> + + New Folder + + + +