From f7939a5fdc6c5469bd7235caab88abcf38549c12 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Tue, 14 Oct 2025 15:36:57 -0500 Subject: [PATCH] Fix Repository modal scrolling properly The modal wasn't scrolling because ScrollArea needed explicit height constraints. Changes: - Set DialogContent to h-[90vh] (fixed height) instead of max-h - Removed default padding (p-0) from DialogContent - Added padding explicitly to header (px-6 pt-6) and scroll wrapper (px-6 pb-6) - Wrapped ScrollArea in a container div with flex-1 min-h-0 overflow-hidden - Set ScrollArea to h-full so it takes the full height of its container - Added pr-4 to inner content div to account for scrollbar The key insight: ScrollArea needs a definite height to work. Using flex-1 alone doesn't provide that - it needs a parent with min-h-0 and a child with h-full. --- src/components/GitDialog.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/GitDialog.tsx b/src/components/GitDialog.tsx index 9d4f02a8..87da2910 100644 --- a/src/components/GitDialog.tsx +++ b/src/components/GitDialog.tsx @@ -682,8 +682,8 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog <> {children && {children}} - e.preventDefault()}> - + e.preventDefault()}> +
@@ -706,8 +706,9 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
- -
+
+ +
{/* URL Configuration */} {gitStatus?.isGitRepo && ( @@ -1018,8 +1019,9 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog )} -
-
+
+ +