| ... | ... | @@ -38,7 +38,6 @@ import { orderDiffFiles } from "./pullRequestFileOrder.logic"; |
| 38 | 38 | import { |
| 39 | 39 | buildFileDiffRenderKey, |
| 40 | 40 | fnv1a32, |
| 41 | | getDiffLineStat, |
| 42 | 41 | getRenderablePatch, |
| 43 | 42 | resolveDiffThemeName, |
| 44 | 43 | resolveFileDiffPath, |
| ... | ... | @@ -546,7 +545,6 @@ function PullRequestCodeTab({ |
| 546 | 545 | toggledFiles, |
| 547 | 546 | ], |
| 548 | 547 | ); |
| 549 | | const lineStat = useMemo(() => getDiffLineStat(files), [files]); |
| 550 | 548 | const omittedFileStats = useMemo( |
| 551 | 549 | () => |
| 552 | 550 | new Map( |
| ... | ... | @@ -1040,7 +1038,7 @@ function PullRequestCodeTab({ |
| 1040 | 1038 | {orderedCommits.length > 0 ? ( |
| 1041 | 1039 | <DropdownMenu> |
| 1042 | 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" |
| 1044 | 1042 | aria-label={`Diff scope: ${scopeLabel}`} |
| 1045 | 1043 | > |
| 1046 | 1044 | <span className="truncate">{scopeLabel}</span> |
| ... | ... | @@ -1089,7 +1087,7 @@ function PullRequestCodeTab({ |
| 1089 | 1087 | ) : null} |
| 1090 | 1088 | {/* One count, and the caveats as icons that carry their own words. Spelled out they |
| 1091 | 1089 | competed for a strip this narrow and every one of them truncated to nothing. */} |
| 1092 | | <PullRequestMetaLine> |
| 1090 | <PullRequestMetaLine className="shrink-0"> |
| 1093 | 1091 | <span className="shrink-0 tabular-nums"> |
| 1094 | 1092 | {files.length} {files.length === 1 ? "file" : "files"} |
| 1095 | 1093 | {nextCursor === null ? "" : "+"} |
| ... | ... | @@ -1124,11 +1122,6 @@ function PullRequestCodeTab({ |
| 1124 | 1122 | </PullRequestMetaLine> |
| 1125 | 1123 | </div> |
| 1126 | 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 | | /> |
| 1132 | 1125 | {fileKeys.length > 0 ? ( |
| 1133 | 1126 | <Tooltip> |
| 1134 | 1127 | <TooltipTrigger |