Skip to content

Commit 0c25c29

Browse files
authored
fix(web): align pull request file counts with diff stats (pingdotgg#23905)
1 parent b7e802b commit 0c25c29

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestDetailLayout.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export function PullRequestDetailHeaderBody({
4444
/>
4545
{head}
4646
</span>
47-
<span className="ml-auto inline-flex shrink-0 items-center justify-end gap-2">
48-
<span className="inline-flex min-w-16 items-center justify-end gap-1.5 tabular-nums">
49-
<FileDiffIcon aria-hidden className="size-3.5" />
47+
<span className="ml-auto inline-flex shrink-0 items-baseline justify-end gap-2">
48+
<span className="inline-flex min-w-16 items-baseline justify-end gap-1.5 tabular-nums">
49+
<FileDiffIcon aria-hidden className="size-3.5 self-center" />
5050
{files}
5151
</span>
5252
{diffStat}

‎apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,14 +1440,14 @@ export function PullRequestDetailPanel({
14401440
<TooltipPopup side="top">{detail.headBranch}</TooltipPopup>
14411441
</Tooltip>
14421442
</span>
1443-
<span className="ml-auto inline-flex shrink-0 items-center justify-end gap-2 text-2xs">
1443+
<span className="ml-auto inline-flex shrink-0 items-baseline justify-end gap-2 text-2xs">
14441444
<span
1445-
className="inline-flex items-center gap-1 tabular-nums"
1445+
className="inline-flex items-baseline gap-1 tabular-nums"
14461446
aria-label={`${detail.changedFiles.toLocaleString()} changed ${
14471447
detail.changedFiles === 1 ? "file" : "files"
14481448
}`}
14491449
>
1450-
<FileDiffIcon aria-hidden className="size-3" />
1450+
<FileDiffIcon aria-hidden className="size-3 self-center" />
14511451
{detail.changedFiles.toLocaleString()}
14521452
</span>
14531453
<PullRequestChangeBreakdownStat

0 commit comments

Comments
 (0)