The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 01:30 UTC
fix(web): keep PR controls readable in narrow panels (#11962)
Bilal Bakr committed
Sep 16, 2026 at 01:12 UTC
f0a0ead946ca3f3f310460a91b7dabb0e3fe4834
2 files changed
+4
-10
apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
+2
-9
@@ -38,7 +38,6 @@ import { orderDiffFiles } from "./pullRequestFileOrder.logic";
38
import {
39
buildFileDiffRenderKey,
40
fnv1a32,
41
- getDiffLineStat,
41
getRenderablePatch,
42
resolveDiffThemeName,
43
resolveFileDiffPath,
@@ -546,7 +545,6 @@ function PullRequestCodeTab({
545
toggledFiles,
546
],
547
);
549
- const lineStat = useMemo(() => getDiffLineStat(files), [files]);
548
const omittedFileStats = useMemo(
549
() =>
550
new Map(
@@ -1040,7 +1038,7 @@ function PullRequestCodeTab({
1038
{orderedCommits.length > 0 ? (
1039
<DropdownMenu>
1040
<DropdownMenuTrigger
1043
- className="inline-flex h-6 max-w-64 items-center gap-1 rounded-md bg-accent px-2 text-xs font-medium text-accent-foreground outline-none transition-colors hover:bg-accent/80 focus-visible:ring-2 focus-visible:ring-ring"
1041
+ className="inline-flex h-6 min-w-0 max-w-64 items-center gap-1 rounded-md bg-accent px-2 text-xs font-medium text-accent-foreground outline-none transition-colors hover:bg-accent/80 focus-visible:ring-2 focus-visible:ring-ring"
1042
aria-label={`Diff scope: ${scopeLabel}`}
1043
>
1044
<span className="truncate">{scopeLabel}</span>
@@ -1089,7 +1087,7 @@ function PullRequestCodeTab({
1087
) : null}
1088
{/* One count, and the caveats as icons that carry their own words. Spelled out they
1089
competed for a strip this narrow and every one of them truncated to nothing. */}
1092
- <PullRequestMetaLine>
1090
+ <PullRequestMetaLine className="shrink-0">
1091
<span className="shrink-0 tabular-nums">
1092
{files.length} {files.length === 1 ? "file" : "files"}
1093
{nextCursor === null ? "" : "+"}
@@ -1124,11 +1122,6 @@ function PullRequestCodeTab({
1122
</PullRequestMetaLine>
1123
</div>
1124
<div className="flex shrink-0 items-center gap-1">
1127
- <PullRequestDiffStat
1128
- additions={lineStat.additions}
1129
- deletions={lineStat.deletions}
1130
- className="mr-1"
1131
- />
1125
{fileKeys.length > 0 ? (
1126
<Tooltip>
1127
<TooltipTrigger
apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx
+2
-1
@@ -2459,10 +2459,11 @@ export function PullRequestDetailPanel({
2459
2460
{detail ? (
2461
<nav
2462
- className="col-span-2 flex min-w-0 items-center gap-1 overflow-x-auto border-t border-border/60 px-4 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
2462
+ className="col-span-2 flex min-w-0 flex-wrap items-center gap-2 border-t border-border/60 px-4 py-2"
2463
aria-label="Pull request tabs"
2464
>
2465
<ToggleGroup
2466
+ className="shrink-0"
2467
size="segmented"
2468
variant="segmented"
2469
value={[tab]}