refine(sidebar): show Agent/Pipeline marker as icon only

Drop the text label; keep the icon with a title tooltip so names have
more room in the narrow sidebar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Junyan Qin
2026-06-26 20:11:33 +08:00
parent fac56e30aa
commit 89221b59ed
@@ -726,15 +726,19 @@ function NavItems({
) : null}
<span className="truncate">{item.name}</span>
{item.kind && (
<span className="ml-auto flex shrink-0 items-center gap-0.5 text-[10px] text-muted-foreground">
<span
className="ml-auto flex shrink-0 items-center text-muted-foreground"
title={
item.kind === 'pipeline'
? t('agents.kindBadgePipeline')
: t('agents.kindBadgeAgent')
}
>
{item.kind === 'pipeline' ? (
<Workflow className="size-3" />
<Workflow className="size-3.5" />
) : (
<Bot className="size-3" />
<Bot className="size-3.5" />
)}
{item.kind === 'pipeline'
? t('agents.kindBadgePipeline')
: t('agents.kindBadgeAgent')}
</span>
)}
{item.debug && (