feat(chat): color agent icons in the agent picker dialog

This commit is contained in:
matevip 2026-05-17 12:00:47 +08:00
parent 001cb1a2ed
commit 85f1e326ed

View File

@ -18,6 +18,7 @@
>
<SkillIcon
class="mc-agent-picker__trigger-icon"
:style="{ color: agentIconColor(selectedAgent?.icon) }"
:value="selectedAgent?.icon"
:size="compact ? 24 : 22"
fallback="🤖"
@ -110,6 +111,7 @@
>
<SkillIcon
class="mc-agent-picker__item-icon"
:style="{ color: agentIconColor(agent.icon) }"
:value="agent.icon"
:size="28"
fallback="🤖"
@ -143,6 +145,7 @@
import { computed, nextTick, onBeforeUnmount, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import SkillIcon from '@/components/common/SkillIcon.vue'
import { agentIconColor } from '@/utils/agentIconColor'
/** Minimal structural shape so this picker works with the full `Agent`
* entity as well as the lighter agent option lists (e.g. workflow steps). */