| ... | @@ -1712,11 +1712,20 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: { | ... | @@ -1712,11 +1712,20 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: { |
| 1712 | type="button" | 1712 | type="button" |
| 1713 | aria-label="Unpin thread" | 1713 | aria-label="Unpin thread" |
| 1714 | onClick={handleUnpinClick} | 1714 | onClick={handleUnpinClick} |
| 1715 | className="inline-flex cursor-pointer items-center rounded-sm text-muted-foreground/65 outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring" | 1715 | className="group/unpin inline-flex cursor-pointer items-center rounded-sm text-muted-foreground/65 outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring" |
| 1716 | /> | 1716 | /> |
| 1717 | } | 1717 | } |
| 1718 | > | 1718 | > |
| 1719 | <PinIcon aria-hidden className="size-3 shrink-0" /> | 1719 | {/* Pin marks the pinned state at rest; hover and focus swap in pin-off so the |
| | 1720 | icon reads as the action the button performs. */} |
| | 1721 | <PinIcon |
| | 1722 | aria-hidden |
| | 1723 | className="size-3 shrink-0 group-hover/unpin:hidden group-focus-visible/unpin:hidden" |
| | 1724 | /> |
| | 1725 | <PinOffIcon |
| | 1726 | aria-hidden |
| | 1727 | className="hidden size-3 shrink-0 group-hover/unpin:block group-focus-visible/unpin:block" |
| | 1728 | /> |
| 1720 | </TooltipTrigger> | 1729 | </TooltipTrigger> |
| 1721 | <TooltipPopup>Unpin thread</TooltipPopup> | 1730 | <TooltipPopup>Unpin thread</TooltipPopup> |
| 1722 | </Tooltip> | 1731 | </Tooltip> |