From 9bc1a53dea0d9e5c9e6f165d3bd8a681fd925fc1 Mon Sep 17 00:00:00 2001 From: Seefs <40468931+seefs001@users.noreply.github.com> Date: Mon, 15 Jun 2026 16:35:18 +0800 Subject: [PATCH] fix: fix CC Switch model selector (#5515) --- .../src/features/keys/components/dialogs/cc-switch-dialog.tsx | 4 +++- web/default/src/i18n/locales/fr.json | 2 +- web/default/src/i18n/locales/ja.json | 2 +- web/default/src/i18n/locales/ru.json | 2 +- web/default/src/i18n/locales/vi.json | 2 +- web/default/src/i18n/locales/zh.json | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx b/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx index 825dd541..52866112 100644 --- a/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx +++ b/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx @@ -151,7 +151,9 @@ export function CCSwitchDialog(props: Props) { title={t('Import to CC Switch')} contentClassName='sm:max-w-md' contentHeight='auto' - bodyClassName='space-y-4' + bodyClassName={ + currentConfig.modelFields.length === 1 ? 'space-y-4 pb-52' : 'space-y-4' + } footer={ <>