diff --git a/src/components/UI/SubTabs.vue b/src/components/UI/SubTabs.vue index d1d48a35..5459bd58 100644 --- a/src/components/UI/SubTabs.vue +++ b/src/components/UI/SubTabs.vue @@ -153,6 +153,7 @@ watch( 'flex items-center justify-between', bordered !== false ? 'border-b border-gray-200/50 dark:border-gray-800/50' : '', size === 'sm' ? 'px-3' : 'px-6', + 'overflow-x-auto', ], ]" > @@ -161,7 +162,7 @@ watch( v-for="tab in items" :key="tab.id" :ref="(el) => setTabRef(tab.id, el as HTMLElement)" - class="flex items-center font-medium transition-colors" + class="flex shrink-0 items-center whitespace-nowrap font-medium transition-colors" :class="[ isVertical ? 'justify-start gap-2 px-3 py-2 text-sm' diff --git a/src/components/common/Settings/AI/AIPromptConfigTab.vue b/src/components/common/Settings/AI/AIPromptConfigTab.vue index 83c4a6bc..960da794 100644 --- a/src/components/common/Settings/AI/AIPromptConfigTab.vue +++ b/src/components/common/Settings/AI/AIPromptConfigTab.vue @@ -42,9 +42,9 @@ const enableAutoSkill = computed({ }) const chartAutoModeOptions = computed(() => [ - { label: t('settings.aiPrompt.skillSettings.chartAutoMode.explicit'), value: 'explicit' }, - { label: t('settings.aiPrompt.skillSettings.chartAutoMode.suggest'), value: 'suggest' }, - { label: t('settings.aiPrompt.skillSettings.chartAutoMode.aggressive'), value: 'aggressive' }, + { label: t('settings.aiPrompt.chatPreferences.chartAutoMode.explicit'), value: 'explicit' }, + { label: t('settings.aiPrompt.chatPreferences.chartAutoMode.suggest'), value: 'suggest' }, + { label: t('settings.aiPrompt.chatPreferences.chartAutoMode.aggressive'), value: 'aggressive' }, ]) const chartAutoMode = computed({ @@ -55,7 +55,9 @@ const chartAutoMode = computed({ }, }) -const chartAutoModeHint = computed(() => t(`settings.aiPrompt.skillSettings.chartAutoMode.${chartAutoMode.value}Hint`)) +const chartAutoModeHint = computed(() => + t(`settings.aiPrompt.chatPreferences.chartAutoMode.${chartAutoMode.value}Hint`) +) const searchContextBefore = computed({ get: () => aiGlobalSettings.value.searchContextBefore ?? 3, @@ -126,16 +128,16 @@ const maxToolResultPercent = computed({

- {{ t('settings.aiPrompt.skillSettings.title') }} + {{ t('settings.aiPrompt.chatPreferences.title') }}

- {{ t('settings.aiPrompt.skillSettings.enableAutoSkill') }} + {{ t('settings.aiPrompt.chatPreferences.enableAutoSkill') }}

- {{ t('settings.aiPrompt.skillSettings.enableAutoSkillDesc') }} + {{ t('settings.aiPrompt.chatPreferences.enableAutoSkillDesc') }}

@@ -144,10 +146,10 @@ const maxToolResultPercent = computed({

- {{ t('settings.aiPrompt.skillSettings.chartAutoMode.title') }} + {{ t('settings.aiPrompt.chatPreferences.chartAutoMode.title') }}

- {{ t('settings.aiPrompt.skillSettings.chartAutoMode.description') }} + {{ t('settings.aiPrompt.chatPreferences.chartAutoMode.description') }}

diff --git a/src/components/common/Settings/AISettingsTab.vue b/src/components/common/Settings/AISettingsTab.vue index 52edbf97..5a1ec129 100644 --- a/src/components/common/Settings/AISettingsTab.vue +++ b/src/components/common/Settings/AISettingsTab.vue @@ -21,8 +21,8 @@ const emit = defineEmits<{ const navItems = computed(() => [ { id: 'model', label: t('settings.tabs.aiConfig') }, { id: 'defaultModel', label: t('settings.tabs.aiDefaultModel') }, + { id: 'skill', label: t('settings.aiPrompt.chatPreferences.title') }, { id: 'chat', label: t('settings.aiPrompt.chatSettings.title') }, - { id: 'skill', label: t('settings.aiPrompt.skillSettings.title') }, { id: 'compression', label: t('settings.aiPrompt.compression.title') }, { id: 'preprocess', label: t('settings.tabs.aiPreprocess') }, { id: 'sessionIndex', label: t('settings.tabs.sessionManage') }, diff --git a/src/i18n/locales/en-US/settings.json b/src/i18n/locales/en-US/settings.json index 4d4576b7..6cdff824 100644 --- a/src/i18n/locales/en-US/settings.json +++ b/src/i18n/locales/en-US/settings.json @@ -298,7 +298,7 @@ "exportSettings": { "title": "Export Settings" }, - "skillSettings": { + "chatPreferences": { "title": "Conversation Preferences", "enableAutoSkill": "AI Auto-Select Skills", "enableAutoSkillDesc": "When enabled, AI will automatically match and activate suitable analysis skills based on user queries; when disabled, skills only take effect when manually selected", diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json index fdb43dae..4303ad34 100644 --- a/src/i18n/locales/ja-JP/settings.json +++ b/src/i18n/locales/ja-JP/settings.json @@ -298,7 +298,7 @@ "exportSettings": { "title": "エクスポート設定" }, - "skillSettings": { + "chatPreferences": { "title": "会話設定", "enableAutoSkill": "AI 自動スキル選択", "enableAutoSkillDesc": "有効にすると、AI がユーザーの質問に基づいて適切な分析スキルを自動的にマッチして有効化します。無効にすると、手動で選択した場合のみスキルが適用されます", diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json index 6d5341eb..bbb3367f 100644 --- a/src/i18n/locales/zh-CN/settings.json +++ b/src/i18n/locales/zh-CN/settings.json @@ -298,7 +298,7 @@ "exportSettings": { "title": "导出设置" }, - "skillSettings": { + "chatPreferences": { "title": "对话偏好", "enableAutoSkill": "AI 自主选择技能", "enableAutoSkillDesc": "启用后,AI 会根据用户的问题自动匹配并激活合适的分析技能;关闭后仅在手动选择技能时生效", diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json index 2902c8a0..2c13cc17 100644 --- a/src/i18n/locales/zh-TW/settings.json +++ b/src/i18n/locales/zh-TW/settings.json @@ -298,7 +298,7 @@ "exportSettings": { "title": "匯出設定" }, - "skillSettings": { + "chatPreferences": { "title": "對話偏好", "enableAutoSkill": "AI 自主選擇技能", "enableAutoSkillDesc": "啟用後,AI 會根據使用者的問題自動匹配並啟用合適的分析技能;關閉後僅在手動選擇技能時生效",