From dc38b0b081fd1f62dacf94cd287e67bef9ef219b Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Fri, 20 Nov 2026 21:45:39 +0800 Subject: [PATCH] fix(vcs): stop Git Log panes flashing a scrollbar while resizing (#4821) The split panels' own overflow: auto showed a native scrollbar whenever a fractional panel height left 1px of rounding overflow, so it flickered while the tool window was dragged. The log's panes scroll themselves; their panels now clip instead. --- src/features/vcs/GitLog.tsx | 7 ++++--- src/features/vcs/log/CommitDetails.tsx | 10 +++++----- src/features/vcs/log/shared.ts | 8 +++++++- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/features/vcs/GitLog.tsx b/src/features/vcs/GitLog.tsx index 048fc8dd4..5e6c1101e 100644 --- a/src/features/vcs/GitLog.tsx +++ b/src/features/vcs/GitLog.tsx @@ -24,6 +24,7 @@ import { CommitDetails } from "./log/CommitDetails"; import { CommitList } from "./log/CommitList"; import { FilterBar } from "./log/FilterBar"; import { useLogRepositories, useReadOnlyLog } from "./log/logHooks"; +import { PANE_STYLE } from "./log/shared"; import { LogIdContext } from "./logContext"; import { invalidateLogDetails } from "./logDetails"; import { useLogOptions } from "./logOptions"; @@ -223,13 +224,13 @@ export function LogView() { > {showBranches && ( <> - + )} - +
@@ -238,7 +239,7 @@ export function LogView() { {showDetails && ( <> - + diff --git a/src/features/vcs/log/CommitDetails.tsx b/src/features/vcs/log/CommitDetails.tsx index 42386aaa3..c9f35f59a 100644 --- a/src/features/vcs/log/CommitDetails.tsx +++ b/src/features/vcs/log/CommitDetails.tsx @@ -52,7 +52,7 @@ import { commitKey, commitRepo } from "../multiRoot"; import { currentRepo, repoName } from "../store"; import { CommitMessage } from "./CommitMessage"; import { useDropdownMenu, useReadOnlyLog } from "./logHooks"; -import { toggle } from "./shared"; +import { PANE_STYLE, toggle } from "./shared"; const LogMergePreview = lazyComponent(() => import("../GitMergeDiff").then((m) => m.GitMergeDiff)); @@ -312,7 +312,7 @@ export function CommitDetails({ commits }: { commits: Commit[] }) { const details = ( - +
setContext("vcsLogChangesFocus", true)} @@ -412,7 +412,7 @@ export function CommitDetails({ commits }: { commits: Commit[] }) {
- +
{many ? ( chosen.map((c) => ) @@ -434,11 +434,11 @@ export function CommitDetails({ commits }: { commits: Commit[] }) { id={`git-log-preview-${diffLocation}`} storageKey={`openidea.vcs.logPreviewSplit.${diffLocation}`} > - + {details} - + {selectedChange ? ( selectedChange.mergeParents?.length === 2 && selectedChange.after ? (