From 55ffecc2b2333c0e6f977a2d9d62d0ac8f360093 Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 25 Nov 2026 10:50:12 +0800 Subject: [PATCH] [fix] canvas: one interface language switch, not three Settings -> General already has the interface language, and the welcome screen offers it before a project exists. The model setup panel repeated the same control in its top-right corner, so the same setting appeared in two places depending on which panel happened to be open, with nothing indicating they were the same value. The setup panel now opens on the thing it is for: which models are missing. The key it used stays, because the welcome screen still labels its switch with it. --- src/canvas/ModelSetup.tsx | 10 +++------- src/canvas/model-setup.css | 2 -- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/canvas/ModelSetup.tsx b/src/canvas/ModelSetup.tsx index efa67ec2c..9c4e24c17 100644 --- a/src/canvas/ModelSetup.tsx +++ b/src/canvas/ModelSetup.tsx @@ -25,16 +25,12 @@ export function ModelSetup({ catalog, onClose, onConfigure }: { onClose: () => void; onConfigure: (kind: SetupKind) => void; }) { - const { t, locale, setLocale } = useI18n(); + // The interface language lives in Settings -> General and on the welcome + // screen; repeating the switch here duplicated one setting across two panels. + const { t } = useI18n(); const missing = modelSetupMissing(catalog.models); const next = missing[0]; return
-
- - -

{t("modelSetup.hint")}

diff --git a/src/canvas/model-setup.css b/src/canvas/model-setup.css index 18cbfe58e..2ae8f8869 100644 --- a/src/canvas/model-setup.css +++ b/src/canvas/model-setup.css @@ -1,6 +1,4 @@ .cw-model-setup { width: 100%; display: flex; flex-direction: column; position: relative; } -.cw-model-setup-language { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--settings-muted); font-size: 12px; } -.cw-model-setup-language select { width: auto; min-height: 30px; } .cw-model-setup-intro { padding: 12px 0 16px; } .cw-model-setup-intro p { margin: 0; color: var(--settings-muted); line-height: 1.6; font-size: 13px; } .cw-model-setup-progress { font-size: 12px; color: var(--settings-muted); margin: 0 0 12px; }