fix(apple): settings captions — cap line length at 360pt, bump to 13pt

Full-width captions ran their text right up to the control column (toggles
especially), reading as one colliding block; ~46 chars/line also measures
better. Same cap on the iOS resolution wheel's inline caption.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 16:10:32 +02:00
parent 6fc32ee355
commit 62af85eaea
2 changed files with 7 additions and 2 deletions
@@ -79,9 +79,10 @@ extension SettingsView {
.pickerStyle(.wheel)
.frame(maxHeight: 140)
Text("The host drives a real output at exactly this mode — true pixels, no scaling.")
.font(.geist(12, relativeTo: .caption))
.font(.geist(13, relativeTo: .footnote))
.foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: 360, alignment: .leading) // match the described-row caption cap
}
}
@@ -23,9 +23,13 @@ extension SettingsView {
VStack(alignment: .leading, spacing: 5) {
content()
Text(caption)
.font(.geist(12, relativeTo: .caption))
.font(.geist(13, relativeTo: .footnote))
.foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true) // wrap, never truncate, in Form cells
// Cap the caption's line length well short of the cell: a full-width caption runs
// its text right up to the control column (toggles especially), reading as one
// colliding block. ~46 chars/line also just measures better.
.frame(maxWidth: 360, alignment: .leading)
}
.padding(.vertical, 2)
}