diff --git a/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx b/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx index ca1e88037..11477222d 100644 --- a/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx +++ b/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx @@ -78,48 +78,50 @@ function TaskHoverToolbar({ return ( {onTogglePin && ( - // biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) - { - e.stopPropagation(); - onTogglePin(); - }} - onKeyDown={(e) => { - if (e.key === "Enter" || e.key === " ") { - e.preventDefault(); + + {/* biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) */} + { e.stopPropagation(); onTogglePin(); - } - }} - title={isPinned ? "Unpin task" : "Pin task"} - > - - + }} + onKeyDown={(e) => { + if (e.key === "Enter" || e.key === " ") { + e.preventDefault(); + e.stopPropagation(); + onTogglePin(); + } + }} + > + + + )} {onArchive && ( - // biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) - { - e.stopPropagation(); - onArchive(); - }} - onKeyDown={(e) => { - if (e.key === "Enter" || e.key === " ") { - e.preventDefault(); + + {/* biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) */} + { e.stopPropagation(); onArchive(); - } - }} - title="Archive task" - > - - + }} + onKeyDown={(e) => { + if (e.key === "Enter" || e.key === " ") { + e.preventDefault(); + e.stopPropagation(); + onArchive(); + } + }} + > + + + )} );