The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 09:00 UTC
fix(web): keep settings section headings description-free (#10415)
maria committed
Sep 6, 2026 at 20:24 UTC
45387700bf49401fd9de4f2db36575e50f9649eb
4 files changed
+10
-19
apps/web/src/components/settings/LoadBalancingSettings.tsx
+2
-5
@@ -28,13 +28,10 @@ export function LoadBalancingSettings({
28
const updateSettings = useUpdateClientSettings();
29
30
return (
31
- <SettingsSection
32
- {...searchableSetting("load-balancing")}
33
- description="Choose how often each machine is used. Prefer gives a machine more work when it has capacity; Less often gives it less. Manual only excludes it from automatic selection. Preferences are saved for this client."
34
- >
31
+ <SettingsSection {...searchableSetting("load-balancing")}>
32
<SettingsRow
33
title="Automatically balance load"
37
- description="Automatically choose a connected machine for new threads in shared projects. You can choose a machine in the composer."
34
+ description="Choose a machine automatically for new threads in shared projects."
35
control={
36
<Switch
37
aria-label="Automatically balance load"
apps/web/src/components/settings/ProviderInstanceCard.tsx
+4
-6
@@ -801,14 +801,12 @@ export function ProviderInstanceCard({
801
802
return (
803
<>
804
- <SettingsSection
805
- title={displayName}
806
- description={editorStatusNode}
807
- icon={titleIconNode}
808
- headerAction={editorHeaderAction}
809
- >
804
+ <SettingsSection title={displayName} icon={titleIconNode} headerAction={editorHeaderAction}>
805
<SettingsRow
806
title="Display name"
807
+ status={
808
+ <div className="flex min-w-0 flex-wrap items-center gap-x-1.5">{editorStatusNode}</div>
809
+ }
810
control={
811
<div
812
inert={readOnly}
apps/web/src/components/settings/UsageProviderSettings.tsx
-1
@@ -37,7 +37,6 @@ export function UsageProviderSettings({
37
<>
38
<SettingsSection
39
{...searchableSetting("usage-providers")}
40
- description="Connect a CLIProxyAPI hub to show its accounts on Usage → Limits."
40
headerAction={
41
!readOnly ? (
42
<Button size="xs" variant="outline" onClick={() => setAdding(true)}>
apps/web/src/components/settings/settingsLayout.tsx
+4
-7
@@ -155,9 +155,9 @@ export function useRelativeTimeTick(intervalMs = 1_000) {
155
return nowMs;
156
}
157
158
+/** Muted section headings have no descriptions; explanatory copy belongs to individual settings. */
159
export function SettingsSection({
160
title,
160
- description,
161
hideTitle = false,
162
icon,
163
headerAction,
@@ -167,7 +167,6 @@ export function SettingsSection({
167
...sectionProps
168
}: ComponentPropsWithoutRef<"section"> & {
169
title: string;
170
- description?: ReactNode;
170
hideTitle?: boolean;
171
icon?: ReactNode;
172
headerAction?: ReactNode;
@@ -195,11 +194,6 @@ export function SettingsSection({
194
{icon}
195
{title}
196
</h2>
198
- {description ? (
199
- <div className="flex min-w-0 flex-wrap items-center gap-x-1.5 text-[13px] leading-[1.45] text-muted-foreground/80">
200
- {description}
201
- </div>
202
- ) : null}
197
</div>
198
<div className="flex min-h-7 min-w-7 items-center justify-end">{headerAction}</div>
199
</div>
@@ -225,6 +219,9 @@ export function SettingsSection({
219
* the control goes inert with a tooltip instead of showing an editable
220
* default that would never save.
221
*
222
+ * Keep descriptions short enough for one line where possible. Allow wrapping
223
+ * for clarity or narrow screens instead of truncating or forcing no-wrap.
224
+ *
225
* Control sizing across settings follows three tiers so rows share a baseline:
226
* - `control` slot: `size="sm"` (Button, Select, Input, NumberField) or `icon-sm`.
227
* - Section `headerAction`s and buttons inside list items, cards, toolbars: `xs` / `icon-xs`.