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