GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): even 4px inset around rows in the PR badge tooltip (#18352) · pingdotgg/t3code@f43f6dd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components
    • ThreadStatusIndicators.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/ThreadStatusIndicators.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/ThreadStatusIndicators.tsx
+18-14Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -316,22 +316,26 @@ function PullRequestBadge({
316316
variant="glass"
317317
className="pointer-events-auto w-80 max-w-[calc(100vw-2rem)] text-left whitespace-normal"
318318
>
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}
331325
onOpenPullRequest={onOpenPullRequest}
332326
/>
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>
335339
</TooltipPopup>
336340
</Tooltip>
337341
);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.