diff --git a/web/src/pages/admin-settings/ChatGPTConnection.tsx b/web/src/pages/admin-settings/ChatGPTConnection.tsx index b1fc5aebcc..f1804656fe 100644 --- a/web/src/pages/admin-settings/ChatGPTConnection.tsx +++ b/web/src/pages/admin-settings/ChatGPTConnection.tsx @@ -30,11 +30,13 @@ type LoginAttempt = { id: string; confirmed: boolean }; const DEFAULT_CALLBACK_URI = "http://127.0.0.1:51121/auth/callback"; /** - * A saved account's Reconnect and Disconnect buttons name its email, which can - * be wider than a phone's tile. The label wraps inside the button, breaking the - * email where it must, instead of running past the screen's edge. + * A button whose label can be wider than a phone's tile: a saved account's + * Reconnect and Disconnect name its email, and Retry can be a long translation + * at a large text size. The label wraps inside the button, breaking a long + * word such as an email where it must, instead of running past the screen's + * edge. */ -const ACCOUNT_ACTION = "h-auto min-h-8 max-w-full py-1 wrap-anywhere whitespace-normal"; +const WRAPPING_BUTTON = "h-auto min-h-8 max-w-full py-1 wrap-anywhere whitespace-normal"; /** Which note a saved account carries in the account select. */ function accountState(account: { @@ -261,11 +263,16 @@ function ChatGPTConnectionPanel({ {t("web.admin.settings.ai.chatgptConnection.intro")}

{status.isError ? ( -
+
{t("web.admin.settings.ai.chatgptConnection.loadFailed")} -
@@ -324,11 +331,16 @@ function ChatGPTConnectionPanel({ disabled={models.isLoading || models.isError || availableModels.length === 0} /> {models.isError ? ( -
+
{t("web.admin.settings.ai.chatgptConnection.modelsFailed")} -
@@ -353,7 +365,7 @@ function ChatGPTConnectionPanel({