mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 12:26:08 +00:00
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:
committed by
huanghuoguoguo
parent
56cd6a74d4
commit
2e619f1684
@@ -777,15 +777,19 @@ function NavItems({
|
|||||||
) : null}
|
) : null}
|
||||||
<span className="truncate">{item.name}</span>
|
<span className="truncate">{item.name}</span>
|
||||||
{item.kind && (
|
{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' ? (
|
{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>
|
</span>
|
||||||
)}
|
)}
|
||||||
{item.debug && (
|
{item.debug && (
|
||||||
|
|||||||
Reference in New Issue
Block a user