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}
);