From 487232c19e2c7681912b3d12d60179595d4fbb8d Mon Sep 17 00:00:00 2001 From: Qing Date: Sat, 10 Feb 2024 12:56:38 +0800 Subject: [PATCH] align model switch text --- web_app/src/components/Settings.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web_app/src/components/Settings.tsx b/web_app/src/components/Settings.tsx index 79f08bd..6d097e2 100644 --- a/web_app/src/components/Settings.tsx +++ b/web_app/src/components/Settings.tsx @@ -686,9 +686,15 @@ export function SettingsDialog() { Loading... - {modelSwitchingTexts.map((text, index) => ( -
{text}
- ))} + {modelSwitchingTexts ? ( +
+ {modelSwitchingTexts.map((text, index) => ( +
{text}
+ ))} +
+ ) : ( + <> + )} {/* */}