Skip to content

Commit 05c6acd

Browse files
committed
fix(web): keep woke dismiss controls clickable
1 parent 0924788 commit 05c6acd

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
868868
<span
869869
className={cn(
870870
"inline-flex justify-end tabular-nums text-muted-foreground/55 transition-opacity",
871-
!isWokeStatus && "group-hover/v2-row:opacity-0",
871+
!isWoke && "group-hover/v2-row:opacity-0",
872872
)}
873873
>
874874
{variantAction === "unsnooze" && props.snoozeWakeLabelText !== null ? (
@@ -905,8 +905,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
905905
aria-label="Wake thread now"
906906
onClick={handleUnsnoozeClick}
907907
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",
908+
"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-hover/v2-row:pointer-events-auto group-hover/v2-row:opacity-100",
909+
isWoke && "group-hover/v2-row:static",
910910
)}
911911
>
912912
<AlarmClockOffIcon className="size-3" />
@@ -918,8 +918,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
918918
aria-label="Un-settle thread"
919919
onClick={handleUnsettleClick}
920920
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",
921+
"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-hover/v2-row:pointer-events-auto group-hover/v2-row:opacity-100",
922+
isWoke && "group-hover/v2-row:static",
923923
)}
924924
>
925925
<Undo2Icon className="mb-px size-3.5" />
@@ -930,8 +930,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
930930
aria-label="Settle thread"
931931
onClick={handleSettleClick}
932932
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",
933+
"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-hover/v2-row:pointer-events-auto group-hover/v2-row:opacity-100",
934+
isWoke && "group-hover/v2-row:static",
935935
)}
936936
>
937937
<CheckIcon className="size-3" />
@@ -1062,8 +1062,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
10621062
// would keep the controls pinned over the status label
10631063
// once the pointer moves away (e.g. after a failed
10641064
// settle) instead of cross-fading back.
1065-
"absolute inset-y-0 right-0 flex items-stretch opacity-0 transition-opacity has-[:focus-visible]:static has-[:focus-visible]:opacity-100 group-hover/v2-row:static group-hover/v2-row:opacity-100",
1066-
snoozeMenuOpen && "static opacity-100",
1065+
"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-hover/v2-row:pointer-events-auto group-hover/v2-row:static group-hover/v2-row:opacity-100",
1066+
snoozeMenuOpen && "pointer-events-auto static opacity-100",
10671067
)}
10681068
>
10691069
{showSnoozeButton ? (

0 commit comments

Comments
 (0)