From d18b7eda74027f9cfeaf24f3ae3c2c6785dcaea2 Mon Sep 17 00:00:00 2001 From: SaladDay <1203511142@qq.com> Date: Wed, 14 Oct 2026 10:05:04 +0000 Subject: [PATCH] Wrap startup setting names only at underscores The shared code style lets text break anywhere, so on phones the Startup settings table shrank the name column and split names mid-word (OAC_EXECUTIO N_CONCURRE NCY). Names now break only at the existing after each underscore. --- apps/web/src/features/system/StartupSettings.tsx | 2 +- apps/web/src/features/system/system.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/src/features/system/StartupSettings.tsx b/apps/web/src/features/system/StartupSettings.tsx index e6ec0f4cc..91983aae1 100644 --- a/apps/web/src/features/system/StartupSettings.tsx +++ b/apps/web/src/features/system/StartupSettings.tsx @@ -47,7 +47,7 @@ export function StartupSettings({ configuration }: { configuration: CoreInstalla {configuration.settings.filter((setting) => setting.key !== "OAC_PUBLIC_URL").map((setting) => ( {/* Narrow screens wrap a name after an underscore, never inside a word. */} - {setting.key.split("_").map((part, index, parts) => index < parts.length - 1 ? [`${part}_`, ] : part)} + {setting.key.split("_").map((part, index, parts) => index < parts.length - 1 ? [`${part}_`, ] : part)} {value(setting)} diff --git a/apps/web/src/features/system/system.css b/apps/web/src/features/system/system.css index a42ff3bb8..dab425033 100644 --- a/apps/web/src/features/system/system.css +++ b/apps/web/src/features/system/system.css @@ -7,6 +7,11 @@ overflow-wrap: anywhere; } +/* Startup setting names break only at the after each underscore. */ +.system-setting-key { + overflow-wrap: normal; +} + .system-muted { color: var(--ink-3); }