From a6582bbcff122065be7535fef72fc9c1eb05589a Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 6 May 2026 01:34:58 +0300 Subject: [PATCH] fix: expand git history dialog height Give the history dialog more vertical space Let the commit list fill the dialog height --- packages/ui/src/components/views/GitView.tsx | 3 ++- packages/ui/src/components/views/git/HistorySection.tsx | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/components/views/GitView.tsx b/packages/ui/src/components/views/GitView.tsx index b651ceb3..7ac5eaed 100644 --- a/packages/ui/src/components/views/GitView.tsx +++ b/packages/ui/src/components/views/GitView.tsx @@ -2315,7 +2315,7 @@ export const GitView: React.FC = () => { - + {t('gitView.history.title')} @@ -2334,6 +2334,7 @@ export const GitView: React.FC = () => { loadingCommitHashes={loadingCommitHashes} onCopyHash={handleCopyCommitHash} showHeader={false} + contentMaxHeightClassName="h-full max-h-none" branchDivider={historyBranchDivider} /> diff --git a/packages/ui/src/components/views/git/HistorySection.tsx b/packages/ui/src/components/views/git/HistorySection.tsx index 9aee192f..fa61a9ac 100644 --- a/packages/ui/src/components/views/git/HistorySection.tsx +++ b/packages/ui/src/components/views/git/HistorySection.tsx @@ -34,6 +34,7 @@ interface HistorySectionProps { loadingCommitHashes: Set; onCopyHash: (hash: string) => void; showHeader?: boolean; + contentMaxHeightClassName?: string; branchDivider?: { insertBeforeIndex: number; branchName: string; @@ -52,6 +53,7 @@ export const HistorySection: React.FC = ({ loadingCommitHashes, onCopyHash, showHeader = true, + contentMaxHeightClassName = 'max-h-[50vh]', branchDivider = null, }) => { const { t } = useI18n(); @@ -96,7 +98,7 @@ export const HistorySection: React.FC = ({ ); const content = ( - + {log.all.length === 0 ? (

@@ -134,10 +136,10 @@ export const HistorySection: React.FC = ({ if (!showHeader) { if (hasSplitHistory) { - return

{content}
; + return
{content}
; } return ( -
+
{content}
);