From e06198a362851cfc440f933c830460c7f27f232d Mon Sep 17 00:00:00 2001 From: iamnbutler Date: Thu, 22 Oct 2026 12:32:32 -0400 Subject: [PATCH] fix(ui): drop Diff header totals that don't fit instead of running under the toolbar --- packages/ui/src/components/diff/diff-view.tsx | 45 ++++++++++--------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/packages/ui/src/components/diff/diff-view.tsx b/packages/ui/src/components/diff/diff-view.tsx index 7874c983..8e7d8fac 100644 --- a/packages/ui/src/components/diff/diff-view.tsx +++ b/packages/ui/src/components/diff/diff-view.tsx @@ -643,27 +643,30 @@ function DiffViewContent(props: DiffViewProps & { kept: Kept }) { -> {base} - {summary.map(sum => ( -
- {sum.group ? {sum.group} : null} - {sum.fixed - ? ( - - {plural(sum.files, "file", "files")} - - ) - : null} - {sum.fixed && !sum.adds && !sum.dels ? null : ( - <> - +{sum.adds} - -{sum.dels} - - )} -
- ))} + {/* One line tall, so totals that don't fit wrap out of sight instead of under the toolbar. */} +
+ {summary.map(sum => ( +
+ {sum.group ? {sum.group} : null} + {sum.fixed + ? ( + + {plural(sum.files, "file", "files")} + + ) + : null} + {sum.fixed && !sum.adds && !sum.dels ? null : ( + <> + +{sum.adds} + -{sum.dels} + + )} +
+ ))} +