Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(ui): use data-active: syntax and add text color for active agent item

Naiyuan Qing3b1bc5a17fd5
diff --git a/apps/web/app/components/hub-sidebar.tsx b/apps/web/app/components/hub-sidebar.tsx
index c6aba4680d..87e3bc3516 100644
--- a/apps/web/app/components/hub-sidebar.tsx
+++ b/apps/web/app/components/hub-sidebar.tsx
@@ -76,7 +76,7 @@ export function HubSidebar() {
role="button"
onClick={() => setActiveAgentId(agent.id)}
data-active={agent.id === activeAgentId || undefined}
- className="flex items-center w-full h-8 px-2 rounded-md cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground data-[active]:bg-sidebar-accent data-[active]:font-medium"
+ className="flex items-center w-full h-8 px-2 rounded-md cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-active:font-medium"
>
<span className="flex-1 min-w-0 truncate font-mono text-xs">
{agent.id}