Skip to content
TypeScript

fix(web): pull request badge sits on the sidebar row's baseline (#14007)

Jaroslav Brtisd2c9281b8112
diff --git a/apps/web/src/components/ThreadStatusIndicators.tsx b/apps/web/src/components/ThreadStatusIndicators.tsx
index 33e5c491229..859650ca0a9 100644
--- a/apps/web/src/components/ThreadStatusIndicators.tsx
+++ b/apps/web/src/components/ThreadStatusIndicators.tsx
@@ -273,7 +273,9 @@ function PullRequestBadge({
className={cn("contents font-normal text-xs tabular-nums", presentation.toneClassName)}
>
<presentation.Icon aria-hidden className="size-3 shrink-0" />
- {presentation.text}
+ {/* An element, not bare text: bare text takes its line box from the control, which
+ inherits the row's size, so beside a text-sm title it sat below the other meta. */}
+ <span>{presentation.text}</span>
</span>
</TooltipTrigger>
<TooltipPopup side="top">{presentation.label}</TooltipPopup>