Skip to content

Commit 0924788

Browse files
committed
fix(web): keep slim woke action clickable
1 parent e9c57ee commit 0924788

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,12 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
865865
the time/jump label yields to the settle affordance. */}
866866
{prBadge}
867867
<span className="relative ml-auto flex h-6 min-w-8 shrink-0 items-center justify-end">
868-
<span className="inline-flex justify-end tabular-nums text-muted-foreground/55 transition-opacity group-hover/v2-row:opacity-0">
868+
<span
869+
className={cn(
870+
"inline-flex justify-end tabular-nums text-muted-foreground/55 transition-opacity",
871+
!isWokeStatus && "group-hover/v2-row:opacity-0",
872+
)}
873+
>
869874
{variantAction === "unsnooze" && props.snoozeWakeLabelText !== null ? (
870875
// Snoozed rows show when they come BACK, not when they were
871876
// last touched — the return ticket is the row's whole story.
@@ -899,7 +904,10 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
899904
type="button"
900905
aria-label="Wake thread now"
901906
onClick={handleUnsnoozeClick}
902-
className="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:opacity-100 group-hover/v2-row:opacity-100"
907+
className={cn(
908+
"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:opacity-100 group-hover/v2-row:opacity-100",
909+
isWokeStatus && "group-hover/v2-row:static",
910+
)}
903911
>
904912
<AlarmClockOffIcon className="size-3" />
905913
</button>
@@ -909,7 +917,10 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
909917
type="button"
910918
aria-label="Un-settle thread"
911919
onClick={handleUnsettleClick}
912-
className="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:opacity-100 group-hover/v2-row:opacity-100"
920+
className={cn(
921+
"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:opacity-100 group-hover/v2-row:opacity-100",
922+
isWokeStatus && "group-hover/v2-row:static",
923+
)}
913924
>
914925
<Undo2Icon className="mb-px size-3.5" />
915926
</button>
@@ -918,7 +929,10 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
918929
type="button"
919930
aria-label="Settle thread"
920931
onClick={handleSettleClick}
921-
className="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:opacity-100 group-hover/v2-row:opacity-100"
932+
className={cn(
933+
"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:opacity-100 group-hover/v2-row:opacity-100",
934+
isWokeStatus && "group-hover/v2-row:static",
935+
)}
922936
>
923937
<CheckIcon className="size-3" />
924938
</button>

0 commit comments

Comments
 (0)