From 39ba201ed2fd31bcfe5008ccfca2c7bc41408a61 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Thu, 6 Aug 2026 00:11:01 -0700 Subject: [PATCH] fix(source-control): prevent long branch names from overlapping chip (#12842) - `truncate` has no effect on inline boxes, so long branch names would overflow their flex item and run under the line-total chip - Adding `block` display forces text truncation with ellipsis instead - Increase gap from 1.5 to 2 so ellipsis doesn't visually merge with chip --- ...source-control-branch-context-row.test.tsx | 25 +++++++++++++++++++ .../source-control-branch-context-row.tsx | 10 +++++--- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/source-control-branch-context-row.test.tsx b/src/renderer/src/components/right-sidebar/source-control-branch-context-row.test.tsx index 0172dab5d..963e4e00a 100644 --- a/src/renderer/src/components/right-sidebar/source-control-branch-context-row.test.tsx +++ b/src/renderer/src/components/right-sidebar/source-control-branch-context-row.test.tsx @@ -249,6 +249,31 @@ describe('SourceControlBranchContextRow branch line total', () => { expect(markup).not.toContain('