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): pinned thread marker stays put when hovering the row (#11122) · pingdotgg/t3code@9bb7d58

File tree

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

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

Copy file name to clipboardExpand all lines: apps/web/src/components/Sidebar.tsx
+11-9Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
22122212
onPointerDown={handleActionPointerDown}
22132213
className={cn(
22142214
"pointer-events-none absolute inset-y-0 right-0 -mr-1 inline-flex cursor-pointer items-center gap-1 rounded-md bg-transparent px-1.5 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 group-any-hover/sidebar-row:pointer-events-auto group-any-hover/sidebar-row:opacity-100",
2215-
isWoke && "group-any-hover/sidebar-row:static",
2215+
isWoke && "static",
22162216
)}
22172217
>
22182218
<AlarmClockOffIcon className="mb-px size-3" />
@@ -2229,7 +2229,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
22292229
onPointerDown={handleActionPointerDown}
22302230
className={cn(
22312231
"pointer-events-none absolute inset-y-0 right-0 -mr-1 inline-flex cursor-pointer items-center gap-1 rounded-md bg-transparent px-1.5 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 group-any-hover/sidebar-row:pointer-events-auto group-any-hover/sidebar-row:opacity-100",
2232-
isWoke && "group-any-hover/sidebar-row:static",
2232+
isWoke && "static",
22332233
)}
22342234
/>
22352235
}
@@ -2246,7 +2246,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
22462246
onPointerDown={handleActionPointerDown}
22472247
className={cn(
22482248
"pointer-events-none absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md bg-transparent px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 group-any-hover/sidebar-row:pointer-events-auto group-any-hover/sidebar-row:opacity-100",
2249-
isWoke && "group-any-hover/sidebar-row:static",
2249+
isWoke && "static",
22502250
)}
22512251
>
22522252
<CheckIcon className="size-3" />
@@ -2314,22 +2314,23 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
23142314
<span className="flex-1" />
23152315
)}
23162316
{pinIndicator}
2317+
{/* Reserve both states' widths so revealing actions cannot move the pin or Woke label. */}
23172318
{sortable?.isDragging ? (
23182319
dragDestination
23192320
) : (
23202321
<span
23212322
className={cn(
2322-
"group/sidebar-status-slot relative ml-auto flex h-5 min-w-8 shrink-0 items-stretch justify-end text-xs",
2323+
"group/sidebar-status-slot ml-auto grid h-5 min-w-8 shrink-0 items-stretch justify-end text-xs",
23232324
props.sweepAction !== null && "hidden",
23242325
)}
23252326
>
23262327
<span
23272328
className={cn(
23282329
isWokeStatus
23292330
? "pointer-events-auto"
2330-
: "pointer-events-none group-has-[:focus-visible]/sidebar-status-slot:absolute group-has-[:focus-visible]/sidebar-status-slot:right-0 group-has-[:focus-visible]/sidebar-status-slot:opacity-0 group-any-hover/sidebar-row:absolute group-any-hover/sidebar-row:right-0 group-any-hover/sidebar-row:opacity-0",
2331-
"flex items-center self-center justify-self-end tabular-nums text-secondary-label transition-opacity",
2332-
snoozeMenuOpen && "pointer-events-none absolute right-0 opacity-0",
2331+
: "pointer-events-none group-has-[:focus-visible]/sidebar-status-slot:opacity-0 group-any-hover/sidebar-row:opacity-0",
2332+
"flex items-center self-center justify-self-end tabular-nums text-secondary-label transition-opacity [grid-area:1/1]",
2333+
snoozeMenuOpen && "pointer-events-none opacity-0",
23332334
)}
23342335
>
23352336
{topStatus ? (
@@ -2400,8 +2401,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
24002401
// would keep the controls pinned over the status label
24012402
// once the pointer moves away (e.g. after a failed
24022403
// settle) instead of cross-fading back.
2403-
"pointer-events-none absolute inset-y-0 right-0 flex items-stretch opacity-0 transition-opacity has-[:focus-visible]:pointer-events-auto has-[:focus-visible]:static has-[:focus-visible]:opacity-100 group-any-hover/sidebar-row:pointer-events-auto group-any-hover/sidebar-row:static group-any-hover/sidebar-row:opacity-100",
2404-
snoozeMenuOpen && "pointer-events-auto static opacity-100",
2404+
"pointer-events-none flex items-stretch justify-self-end opacity-0 transition-opacity has-[:focus-visible]:pointer-events-auto has-[:focus-visible]:opacity-100 group-any-hover/sidebar-row:pointer-events-auto group-any-hover/sidebar-row:opacity-100",
2405+
isWokeStatus ? "[grid-area:1/2]" : "[grid-area:1/1]",
2406+
snoozeMenuOpen && "pointer-events-auto opacity-100",
24052407
)}
24062408
>
24072409
{hasUnsentDraft ? (

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.