fix(web): even 4px inset around rows in the PR badge tooltip (#18352)

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Dara AdedejiandClaude Opus 5.5 authored and GitHub committed 2026-10-11 18:35:03 -03:00
1 parent 1d270bec29
commit f43f6ddde0
1 file changed
+18 -14
@@ -316,22 +316,26 @@ function PullRequestBadge({
variant="glass"
className="pointer-events-auto w-80 max-w-[calc(100vw-2rem)] text-left whitespace-normal"
>
{visibleThreadPullRequests(pullRequests).length > 0 ? (
<ThreadPullRequestsMiniList
pullRequests={pullRequests}
onOpenPullRequest={onOpenPullRequest}
/>
) : number !== undefined && url !== undefined ? (
<ul className="flex flex-col gap-1">
<ThreadPullRequestMiniListItem
number={number}
url={url}
title={status?.tooltipTitle ?? presentation.label}
presentation={presentation}
{/* The viewport pads 8px inline and 4px block; pull the rows out so their hover
highlight sits 4px from every edge. */}
<div className="-mx-1">
{visibleThreadPullRequests(pullRequests).length > 0 ? (
<ThreadPullRequestsMiniList
pullRequests={pullRequests}
onOpenPullRequest={onOpenPullRequest}
/>
</ul>
) : null}
) : number !== undefined && url !== undefined ? (
<ul className="flex flex-col gap-1">
<ThreadPullRequestMiniListItem
number={number}
url={url}
title={status?.tooltipTitle ?? presentation.label}
presentation={presentation}
onOpenPullRequest={onOpenPullRequest}
/>
</ul>
) : null}
</div>
</TooltipPopup>
</Tooltip>
);