From b9d8b303a10ce7aea265d71a8c7ff594f4c39255 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 18 Apr 2026 22:43:05 +0800 Subject: [PATCH] fix(ui): scope insight filter mode dropdown styles correctly --- src/pages/SettingsPage.tsx | 62 ++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/src/pages/SettingsPage.tsx b/src/pages/SettingsPage.tsx index b172e2f..a5f2202 100644 --- a/src/pages/SettingsPage.tsx +++ b/src/pages/SettingsPage.tsx @@ -3469,36 +3469,38 @@ function SettingsPage({ onClose }: SettingsPageProps = {}) { -
- - {aiInsightFilterMode === 'whitelist' - ? '白名单模式(仅对名单内会话生效)' - : '黑名单模式(名单内会话将被忽略)'} - -
-
setInsightFilterModeDropdownOpen(!insightFilterModeDropdownOpen)} - > - - {aiInsightFilterMode === 'whitelist' ? '白名单模式' : '黑名单模式'} - - -
-
- {[ - { value: 'whitelist', label: '白名单模式' }, - { value: 'blacklist', label: '黑名单模式' } - ].map(option => ( -
{ void saveFilterMode(option.value as configService.AiInsightFilterMode) }} - > - {option.label} - {aiInsightFilterMode === option.value && } -
- ))} +
+
+ + {aiInsightFilterMode === 'whitelist' + ? '白名单模式(仅对名单内会话生效)' + : '黑名单模式(名单内会话将被忽略)'} + +
+
setInsightFilterModeDropdownOpen(!insightFilterModeDropdownOpen)} + > + + {aiInsightFilterMode === 'whitelist' ? '白名单模式' : '黑名单模式'} + + +
+
+ {[ + { value: 'whitelist', label: '白名单模式' }, + { value: 'blacklist', label: '黑名单模式' } + ].map(option => ( +
{ void saveFilterMode(option.value as configService.AiInsightFilterMode) }} + > + {option.label} + {aiInsightFilterMode === option.value && } +
+ ))} +