fix: remove fixed width from ask/agent mode dropdown to allow adaptive sizing

This commit is contained in:
t8y2 2026-05-28 14:33:24 +08:00
parent 56c937f844
commit 967a12cc42
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ const messageRenderer = computed(() => {
</svg>
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" class="w-40">
<DropdownMenuContent align="start">
<DropdownMenuItem class="text-xs gap-1.5" :title="t('ai.modeHints.ask')" @click="assistantMode = 'ask'">
<Check class="h-3 w-3 shrink-0" :class="{ 'opacity-0': assistantMode !== 'ask' }" />
<MessageSquarePlus class="h-3 w-3 shrink-0 text-muted-foreground" />