From ab29cf9e31caff9fc03ef829ad7dd3eea86c1c19 Mon Sep 17 00:00:00 2001 From: qer Date: Wed, 10 Jun 2026 17:46:49 +0800 Subject: [PATCH] feat(web): remove SVG icon from plan pill to match permission style - Both permission and plan pills are now clean text-only pills - Ensures consistent visual appearance across toolbar controls --- apps/kimi-web/src/components/Composer.vue | 25 ++++++++++------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/apps/kimi-web/src/components/Composer.vue b/apps/kimi-web/src/components/Composer.vue index 52a7cddd0..16c37f20e 100644 --- a/apps/kimi-web/src/components/Composer.vue +++ b/apps/kimi-web/src/components/Composer.vue @@ -610,11 +610,11 @@ function selectModel(modelId: string): void { :title="msg.attachmentCount > 0 ? t('composer.queuedHasImage', { n: msg.attachmentCount }) : t('composer.editQueued')" @click="msg.attachmentCount === 0 && editQueued(i, msg.text)" > - + {{ msg.text || t('composer.queuedImageOnly', { n: msg.attachmentCount }) }} @@ -628,7 +628,7 @@ function selectModel(modelId: string): void { {{ att.name }} - + @@ -637,11 +637,11 @@ function selectModel(modelId: string): void { - + @@ -715,7 +715,7 @@ function selectModel(modelId: string): void { type="button" @click="openFilePicker" > - + @@ -741,7 +741,7 @@ function selectModel(modelId: string): void { role="menuitem" @click="choosePermission(opt.mode)" > - {{ opt.mode === status.permission ? '✓' : '' }} + {{ t(opt.labelKey) }} {{ t(opt.descKey) }} @@ -760,10 +760,7 @@ function selectModel(modelId: string): void { @click="emit('togglePlan')" @keydown.enter="emit('togglePlan')" @keydown.space.prevent="emit('togglePlan')" - > - - {{ t('status.planLabel') }} - + >{{ t('status.planLabel') }} @@ -812,7 +809,7 @@ function selectModel(modelId: string): void { > {{ status.model }} {{ t('composer.thinkingSuffix') }} - + @@ -828,7 +825,7 @@ function selectModel(modelId: string): void { role="menuitem" @click="selectModel(m.id)" > - {{ (m.id === status.model || m.model === status.model || m.displayName === status.model) ? '✓' : '' }} + {{ m.displayName ?? m.model }} @@ -841,7 +838,7 @@ function selectModel(modelId: string): void { :class="{ 'is-on': thinkingOn }" @click="toggleThinking()" > - {{ thinkingOn ? '✓' : '' }} + {{ t('status.thinkingLabel') }}