From b75314588796390db0b57c6aa82500e1bd4f6e10 Mon Sep 17 00:00:00 2001 From: liucong2013 <10938633+liucong2013@users.noreply.github.com> Date: Mon, 20 Apr 2026 16:21:05 +0000 Subject: [PATCH] fix(openai): address provider UI review feedback --- .../providers/OpenAISection/OpenAISection.tsx | 25 +++++++++++++++++-- src/i18n/locales/en.json | 21 +++------------- src/i18n/locales/ru.json | 7 +++--- src/i18n/locales/zh-CN.json | 21 +++------------- src/pages/AiProvidersPage.module.scss | 18 ++++++++++--- 5 files changed, 47 insertions(+), 45 deletions(-) diff --git a/src/components/providers/OpenAISection/OpenAISection.tsx b/src/components/providers/OpenAISection/OpenAISection.tsx index c4e13f8..6c51ecc 100644 --- a/src/components/providers/OpenAISection/OpenAISection.tsx +++ b/src/components/providers/OpenAISection/OpenAISection.tsx @@ -325,7 +325,7 @@ export function OpenAISection({ onClick={toggleSortDirection} className={styles.sortDirectionButton} disabled={actionsDisabled} - title={sortDirection === 'asc' ? t('common.sort_ascending') : t('common.sort_descending')} + title={sortDirection === 'asc' ? t('ai_providers.sort_ascending') : t('ai_providers.sort_descending')} > {sortDirection === 'asc' ? '↑' : '↓'} @@ -356,7 +356,7 @@ export function OpenAISection({ ) : ( <> {Array.from(selectedModels).map((name) => ( - + {name} )} + {selectedModels.size > 0 && ( + + )} {renderSortControls()} + )} + /> ) : sortedConfigs.length === 0 ? (