feat(web): letter avatars for custom model groups and agents (#31)

Co-authored-by: Alice <alice@prismshadow.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei Zheng
2026-07-22 22:04:34 +08:00
committed by GitHub
parent c9cd1f9dc5
commit 6d25adfef4
10 changed files with 300 additions and 75 deletions
@@ -197,7 +197,12 @@ export function AgentsPage() {
<div className="min-w-[14rem] flex-1">
{/* Title line: small avatar + name + agentId + active badge */}
<div className="flex items-center gap-2">
<AgentAvatar id={a.agentId} size={18} className="shrink-0 rounded" />
<AgentAvatar
id={a.agentId}
name={agentDisplayName(a)}
size={18}
className="shrink-0 rounded"
/>
{/* min-w-0: flex children don't shrink below their content by default; needed here to truncate overly long names */}
<span className="min-w-0 truncate text-base font-bold">
{agentDisplayName(a)}