File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { useUiStateStore } from "../../uiStateStore";
99import { resolveSidebarFolderDot , resolveThreadLastVisitedAt } from "../Sidebar.logic" ;
1010import { ProjectFavicon } from "../ProjectFavicon" ;
1111import { Button } from "../ui/button" ;
12+ import { Tooltip , TooltipPopup , TooltipTrigger } from "../ui/tooltip" ;
1213
1314const FOLDER_DOT_CLASS_NAME = {
1415 attention : "bg-warning" ,
@@ -100,15 +101,22 @@ export const SidebarProjectFolderHeader = memo(function SidebarProjectFolderHead
100101 </ button >
101102 { /* Sits over the count, which hides on hover, and left of the chevron. */ }
102103 < span className = "absolute inset-y-0 right-6 flex items-center opacity-0 focus-within:opacity-100 group-hover/project-folder:opacity-100 pointer-coarse:opacity-100" >
103- < Button
104- data-sidebar-action-for = { rowId }
105- size = "icon-xs"
106- variant = "ghost-muted"
107- aria-label = { `New thread in ${ group . displayName } ` }
108- onClick = { ( ) => props . onNewThread ( group ) }
109- >
110- < SquarePenIcon aria-hidden />
111- </ Button >
104+ < Tooltip >
105+ < TooltipTrigger
106+ render = {
107+ < Button
108+ data-sidebar-action-for = { rowId }
109+ size = "icon-xs"
110+ variant = "ghost-muted"
111+ aria-label = { `New thread in ${ group . displayName } ` }
112+ onClick = { ( ) => props . onNewThread ( group ) }
113+ />
114+ }
115+ >
116+ < SquarePenIcon aria-hidden />
117+ </ TooltipTrigger >
118+ < TooltipPopup > New thread in { group . displayName } </ TooltipPopup >
119+ </ Tooltip >
112120 </ span >
113121 </ li >
114122 ) ;
Original file line number Diff line number Diff line change @@ -1354,18 +1354,25 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
13541354 < TooltipPopup side = "top" > Un-settle thread</ TooltipPopup >
13551355 </ Tooltip >
13561356 ) : (
1357- < button
1358- type = "button"
1359- aria-label = "Settle thread"
1360- onClick = { handleSettleClick }
1361- onPointerDown = { handleActionPointerDown }
1362- className = { cn (
1363- "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" ,
1364- isWoke && "group-any-hover/sidebar-row:static" ,
1365- ) }
1366- >
1367- < CheckIcon className = "size-3" />
1368- </ button >
1357+ < Tooltip >
1358+ < TooltipTrigger
1359+ render = {
1360+ < button
1361+ type = "button"
1362+ aria-label = "Settle thread"
1363+ onClick = { handleSettleClick }
1364+ onPointerDown = { handleActionPointerDown }
1365+ className = { cn (
1366+ "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" ,
1367+ isWoke && "group-any-hover/sidebar-row:static" ,
1368+ ) }
1369+ />
1370+ }
1371+ >
1372+ < CheckIcon className = "size-3" />
1373+ </ TooltipTrigger >
1374+ < TooltipPopup side = "top" > Settle thread</ TooltipPopup >
1375+ </ Tooltip >
13691376 ) }
13701377 </ span >
13711378 ) }
You can’t perform that action at this time.
0 commit comments