优化 SearchableSelect 滚动逻辑和 AI 模型选择器布局
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
This commit is contained in:
1 parent
49705a1a8f
commit
7ae024ffd4
2 files changed
+19
-11
No files matched your search
@@ -1287,6 +1287,7 @@ const messageRenderer = computed(() => {
|
||||
item-class="text-xs px-2"
|
||||
@update:model-value="(value) => selectAction(value as AiAction)"
|
||||
/>
|
||||
<span class="min-w-0 flex-1" />
|
||||
<SearchableSelect
|
||||
v-if="settings.isConfigured()"
|
||||
:model-value="settings.aiConfig.model"
|
||||
@@ -1297,7 +1298,7 @@ const messageRenderer = computed(() => {
|
||||
:loading-text="t('ai.loadingModels')"
|
||||
:loading="modelLoading"
|
||||
:display-name="displayModelName"
|
||||
trigger-class="min-w-0 flex-1 shrink justify-end rounded-full border px-2 py-0.5 text-[11px] text-muted-foreground hover:bg-muted hover:text-foreground"
|
||||
trigger-class="min-w-0 w-auto max-w-[220px] shrink justify-end rounded-full border px-2 py-0.5 text-[11px] text-muted-foreground hover:bg-muted hover:text-foreground"
|
||||
content-class="w-72"
|
||||
item-class="text-xs px-2"
|
||||
@update:model-value="handleModelSelect"
|
||||
|
||||
Reference in new issue
Block a user