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 23, 04:15 UTC
fix(web): align pull request comment headers (#15341)
Josh McKinney committed
Oct 18, 2026 at 12:10 UTC
89d4e8bef9f62bf19221c12ca0fb708b5a9e0da7
2 files changed
+22
-11
apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx
+14
-7
@@ -87,7 +87,7 @@ function CommentIdentity({
87
? sourceControlClients.get(detail.provider).authorProfileUrl(actor.login, detail.url)
88
: null;
89
return (
90
- <div className="flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1 text-xs">
90
+ <div className="flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-1 text-xs">
91
<PullRequestActorLabel actor={actor} profileUrl={profileUrl} className="max-w-full" />
92
<Tooltip>
93
<TooltipTrigger
@@ -218,7 +218,7 @@ function CollapsedComment({
218
<Collapsible open={open} onOpenChange={setOpen}>
219
<article className="group rounded-lg border border-border/60 [contain-intrinsic-block-size:44px] [content-visibility:auto]">
220
<div className="p-3">
221
- <div className="flex flex-wrap items-start gap-2">
221
+ <div className="flex flex-wrap items-baseline gap-2">
222
<CommentIdentity comment={comment} detail={detail} />
223
<CollapsibleTrigger
224
ref={statusTriggerRef}
@@ -580,8 +580,8 @@ export function PullRequestSummaryTab({
580
// highlighted code, and the conversation is below the description either way.
581
className="group rounded-lg border border-border/60 bg-background [contain-intrinsic-block-size:160px] [content-visibility:auto]"
582
>
583
- <div className="flex flex-wrap items-start gap-2 rounded-t-lg bg-muted/25 px-3 py-2.5">
584
- <div className="flex min-w-0 flex-1 flex-wrap items-center gap-2 text-xs text-muted-foreground">
583
+ <div className="flex flex-wrap items-baseline gap-2 rounded-t-lg bg-muted/25 px-3 py-2.5">
584
+ <div className="flex min-w-0 flex-1 flex-wrap items-baseline gap-2 text-xs text-muted-foreground">
585
<CommentIdentity comment={comment} detail={detail} />
586
{outcome ? (
587
<PullRequestReviewOutcomeBadge outcome={outcome} />
@@ -593,12 +593,19 @@ export function PullRequestSummaryTab({
593
<Button
594
size="xs"
595
variant="ghost"
596
- className="-mt-1 shrink-0"
596
+ className="shrink-0"
597
disabled={pendingFinding !== null && pendingFinding !== undefined}
598
onClick={() => onFixFinding(finding)}
599
>
600
- <HammerIcon className="size-3" />
601
- {pendingFinding === pullRequestFindingKey(finding) ? "Preparing..." : fixFindingLabel}
600
+ {/* Export the text baseline rather than the hammer icon's bottom edge. */}
601
+ <span className="inline-flex items-baseline gap-1">
602
+ <HammerIcon className="size-3 self-center" />
603
+ <span>
604
+ {pendingFinding === pullRequestFindingKey(finding)
605
+ ? "Preparing..."
606
+ : fixFindingLabel}
607
+ </span>
608
+ </span>
609
</Button>
610
) : null}
611
{reactionBar}
apps/web/src/components/pullRequest/pullRequestPresentation.tsx
+8
-4
@@ -363,8 +363,11 @@ export function PullRequestReviewOutcomeBadge({
363
const presentation = REVIEW_OUTCOME_PRESENTATION[outcome];
364
return (
365
<Badge size="sm" variant={presentation.badgeVariant} className={className}>
366
- <presentation.Icon aria-hidden className="size-3" />
367
- {presentation.label}
366
+ {/* Align with surrounding text using the label, rather than the icon's bottom edge. */}
367
+ <span className="inline-flex items-baseline gap-1">
368
+ <presentation.Icon aria-hidden className="size-3 self-center" />
369
+ <span>{presentation.label}</span>
370
+ </span>
371
</Badge>
372
);
373
}
@@ -415,9 +418,10 @@ export function PullRequestActorLabel({
418
profileUrl?: string | null;
419
}) {
420
const login = actor?.login ?? "ghost";
421
+ // Let the name supply the group's baseline while the avatar stays vertically centered.
422
const label = (
419
- <span className={cn("flex min-w-0 items-center", variant === "label" && "gap-1.5")}>
420
- <PullRequestActorAvatar actor={actor} />
423
+ <span className={cn("flex min-w-0 items-baseline", variant === "label" && "gap-1.5")}>
424
+ <PullRequestActorAvatar actor={actor} className="self-center" />
425
<span className={variant === "label" ? "truncate font-medium text-foreground" : "sr-only"}>
426
{login}
427
</span>