From 60793aa277bd8cbe82b363d555b688e831c16016 Mon Sep 17 00:00:00 2001 From: Matt Vollmer Date: Sat, 28 Feb 2026 02:17:08 -0500 Subject: [PATCH] fix(site): fix double-tap required to open chat on mobile (#22430) --- site/src/pages/AgentsPage/AgentsSidebar.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/site/src/pages/AgentsPage/AgentsSidebar.tsx b/site/src/pages/AgentsPage/AgentsSidebar.tsx index 8228568b1e..3200f3785b 100644 --- a/site/src/pages/AgentsPage/AgentsSidebar.tsx +++ b/site/src/pages/AgentsPage/AgentsSidebar.tsx @@ -332,8 +332,8 @@ const ChatTreeNode = memo(({ chat, isChildNode }) => { data-testid={`agents-tree-node-${chat.id}`} className={cn( "group relative flex min-w-0 items-start gap-1.5 rounded-md pr-1 text-content-secondary", - "transition-none hover:bg-surface-tertiary/50 hover:text-content-primary has-[[data-state=open]]:bg-surface-tertiary", - "has-[[aria-current=page]]:bg-surface-quaternary/25 has-[[aria-current=page]]:text-content-primary has-[[aria-current=page]]:hover:bg-surface-quaternary/50", + "transition-none [@media(hover:hover)]:hover:bg-surface-tertiary/50 [@media(hover:hover)]:hover:text-content-primary has-[[data-state=open]]:bg-surface-tertiary", + "has-[[aria-current=page]]:bg-surface-quaternary/25 has-[[aria-current=page]]:text-content-primary [@media(hover:hover)]:has-[[aria-current=page]]:hover:bg-surface-quaternary/50", isChildNode && "before:absolute before:-left-2.5 before:top-[17px] before:h-px before:w-2.5 before:bg-border-default/70", )} @@ -342,7 +342,7 @@ const ChatTreeNode = memo(({ chat, isChildNode }) => {
(({ chat, isChildNode }) => { variant="subtle" size="icon" onClick={() => toggleExpanded(chatID)} - className="absolute inset-0 invisible flex h-5 w-5 min-w-0 items-center justify-center rounded-md p-0 text-content-secondary/60 hover:text-content-primary group-hover:visible [&>svg]:size-3.5" + className="absolute inset-0 invisible flex h-5 w-5 min-w-0 items-center justify-center rounded-md p-0 text-content-secondary/60 hover:text-content-primary [@media(hover:hover)]:group-hover:visible [&>svg]:size-3.5" data-testid={`agents-tree-toggle-${chat.id}`} aria-label={isExpanded ? "Collapse" : "Expand"} aria-expanded={isExpanded} @@ -414,7 +414,7 @@ const ChatTreeNode = memo(({ chat, isChildNode }) => { )}
- + {shortRelativeTime(chat.updated_at)} @@ -423,7 +423,7 @@ const ChatTreeNode = memo(({ chat, isChildNode }) => { size="icon" variant="subtle" className={cn( - "absolute inset-0 h-6 w-7 justify-end rounded-none px-0 text-content-secondary opacity-0 transition-opacity hover:text-content-primary group-hover:opacity-100", + "absolute inset-0 h-6 w-7 justify-end rounded-none px-0 text-content-secondary opacity-0 transition-opacity hover:text-content-primary [@media(hover:hover)]:group-hover:opacity-100", isArchivingThisChat && "opacity-100", )} aria-label={`Open actions for ${chat.title}`}