Skip to content

Commit 44fe2d2

Browse files
t3dotggclaude
andcommitted
fix(web): folder new-thread control uses the Button primitive
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 8f3671e commit 44fe2d2

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,14 +1457,16 @@ const SidebarProjectFolderHeader = memo(function SidebarProjectFolderHeader(prop
14571457
</span>
14581458
) : null}
14591459
</button>
1460-
<button
1461-
type="button"
1462-
aria-label={`New thread in ${group.displayName}`}
1463-
onClick={() => props.onNewThread(group)}
1464-
className="absolute inset-y-0 right-1 my-auto inline-flex size-6 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity outline-none hover:text-foreground focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring group-hover/project-folder:opacity-100 pointer-coarse:opacity-100"
1465-
>
1466-
<SquarePenIcon aria-hidden className="size-3.5" />
1467-
</button>
1460+
<span className="absolute inset-y-0 right-1 flex items-center opacity-0 transition-opacity focus-within:opacity-100 group-hover/project-folder:opacity-100 pointer-coarse:opacity-100">
1461+
<Button
1462+
size="icon-xs"
1463+
variant="ghost-muted"
1464+
aria-label={`New thread in ${group.displayName}`}
1465+
onClick={() => props.onNewThread(group)}
1466+
>
1467+
<SquarePenIcon aria-hidden />
1468+
</Button>
1469+
</span>
14681470
</li>
14691471
);
14701472
});

0 commit comments

Comments
 (0)