From 97ba41d441d1da2766eb3651207333be689f1d2f Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Mon, 5 Oct 2026 22:13:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(git-lens):=20=E5=88=86=E6=94=AF=E6=9D=A1?= =?UTF-8?q?=E4=B8=8E=E6=8F=90=E4=BA=A4=E6=A1=86=E7=A7=BB=E5=87=BA=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E4=BD=93=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=86=85=E5=B1=82=E6=BB=9A=E5=8A=A8=EF=BC=88#194=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/changes/GitLens.tsx | 218 ++++++++++++++------------ src/client/changes/changes.module.css | 29 +++- tests/changes-tab.spec.tsx | 89 +++++++++++ 3 files changed, 224 insertions(+), 112 deletions(-) diff --git a/src/client/changes/GitLens.tsx b/src/client/changes/GitLens.tsx index be981b0b..85191738 100644 --- a/src/client/changes/GitLens.tsx +++ b/src/client/changes/GitLens.tsx @@ -863,9 +863,12 @@ export function GitLens(props: GitLensProps) { ) return ( -
+
+ {/* The non-scrolling head: the branch / repository / worktree band stays + on screen while the change list and the history scroll under it + (#194). */} {(repoChoices.length > 1 || worktrees.length > 1 || branch !== '') && ( -
+
{repoChoices.length > 1 && (