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
+12 -2
View File
@@ -587,7 +587,12 @@ function AgentSelect({
className={pillClass}
>
{selected ? (
<AgentAvatar id={selected.agentId} size={16} className="shrink-0 rounded" />
<AgentAvatar
id={selected.agentId}
name={agentDisplayName(selected)}
size={16}
className="shrink-0 rounded"
/>
) : null}
<span className="min-w-0 truncate">
{selected ? agentDisplayName(selected) : S.common.loading}
@@ -613,7 +618,12 @@ function AgentSelect({
}}
className="flex w-full items-center gap-2.5 px-3 py-1.5 text-left transition-colors duration-150 hover:bg-gray-100 dark:hover:bg-gray-800"
>
<AgentAvatar id={a.agentId} size={20} className="shrink-0 rounded" />
<AgentAvatar
id={a.agentId}
name={agentDisplayName(a)}
size={20}
className="shrink-0 rounded"
/>
<span className="min-w-0 flex-1">
<span
className={`block truncate text-xs ${