From f0a0ead946ca3f3f310460a91b7dabb0e3fe4834 Mon Sep 17 00:00:00 2001 From: Bilal Bakr <62337003+Bil0000@users.noreply.github.com> Date: Wed, 16 Sep 2026 01:12:36 +0300 Subject: [PATCH] fix(web): keep PR controls readable in narrow panels (#11962) --- .../src/components/pullRequest/PullRequestCodeTab.tsx | 11 ++--------- .../components/pullRequest/PullRequestDetailPanel.tsx | 3 ++- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx index 59f40f95552837cad6bb7a16a1a00c4fe444919c..54cfc0258686660e2bf665e5fd973e38e2c4c474 100644 --- a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx +++ b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx @@ -38,7 +38,6 @@ import { orderDiffFiles } from "./pullRequestFileOrder.logic"; import { buildFileDiffRenderKey, fnv1a32, - getDiffLineStat, getRenderablePatch, resolveDiffThemeName, resolveFileDiffPath, @@ -546,7 +545,6 @@ function PullRequestCodeTab({ toggledFiles, ], ); - const lineStat = useMemo(() => getDiffLineStat(files), [files]); const omittedFileStats = useMemo( () => new Map( @@ -1040,7 +1038,7 @@ function PullRequestCodeTab({ {orderedCommits.length > 0 ? ( {scopeLabel} @@ -1089,7 +1087,7 @@ function PullRequestCodeTab({ ) : null} {/* One count, and the caveats as icons that carry their own words. Spelled out they competed for a strip this narrow and every one of them truncated to nothing. */} - + {files.length} {files.length === 1 ? "file" : "files"} {nextCursor === null ? "" : "+"} @@ -1124,11 +1122,6 @@ function PullRequestCodeTab({
- {fileKeys.length > 0 ? (