| ... | ... | @@ -316,22 +316,26 @@ function PullRequestBadge({ |
| 316 | 316 | variant="glass" |
| 317 | 317 | className="pointer-events-auto w-80 max-w-[calc(100vw-2rem)] text-left whitespace-normal" |
| 318 | 318 | > |
| 319 | | {visibleThreadPullRequests(pullRequests).length > 0 ? ( |
| 320 | | <ThreadPullRequestsMiniList |
| 321 | | pullRequests={pullRequests} |
| 322 | | onOpenPullRequest={onOpenPullRequest} |
| 323 | | /> |
| 324 | | ) : number !== undefined && url !== undefined ? ( |
| 325 | | <ul className="flex flex-col gap-1"> |
| 326 | | <ThreadPullRequestMiniListItem |
| 327 | | number={number} |
| 328 | | url={url} |
| 329 | | title={status?.tooltipTitle ?? presentation.label} |
| 330 | | presentation={presentation} |
| 319 | {/* The viewport pads 8px inline and 4px block; pull the rows out so their hover |
| 320 | highlight sits 4px from every edge. */} |
| 321 | <div className="-mx-1"> |
| 322 | {visibleThreadPullRequests(pullRequests).length > 0 ? ( |
| 323 | <ThreadPullRequestsMiniList |
| 324 | pullRequests={pullRequests} |
| 331 | 325 | onOpenPullRequest={onOpenPullRequest} |
| 332 | 326 | /> |
| 333 | | </ul> |
| 334 | | ) : null} |
| 327 | ) : number !== undefined && url !== undefined ? ( |
| 328 | <ul className="flex flex-col gap-1"> |
| 329 | <ThreadPullRequestMiniListItem |
| 330 | number={number} |
| 331 | url={url} |
| 332 | title={status?.tooltipTitle ?? presentation.label} |
| 333 | presentation={presentation} |
| 334 | onOpenPullRequest={onOpenPullRequest} |
| 335 | /> |
| 336 | </ul> |
| 337 | ) : null} |
| 338 | </div> |
| 335 | 339 | </TooltipPopup> |
| 336 | 340 | </Tooltip> |
| 337 | 341 | ); |