fix(ui): harden horizontal switch row layout
Switches now lay out side by side (HStack). Polish so it degrades cleanly: - PedalSwitchView caption: lineLimit(1) — no wrap → no height jitter between switches sharing a row. - switchRow: .top alignment so segment bars stay level; doc updated (no longer "one per row"). - MutantPedal: widthUnits 2 so its Sweep (2-way) + Mode (3-way) switches sit side by side without cramping in a single-width card. UI-only; no audio/state changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -87,6 +87,7 @@ public struct PedalSwitchView: View {
|
||||
Text(inert ? "\(pedalSwitch.label) (tempo off)" : pedalSwitch.label)
|
||||
.font(.system(size: PedalSwitchView.captionFontSize))
|
||||
.foregroundStyle(Color.white)
|
||||
.lineLimit(1)
|
||||
}
|
||||
.disabled(inert)
|
||||
.opacity(inert ? PedalSwitchView.tempoDisabledOpacity : 1.0)
|
||||
|
||||
Reference in New Issue
Block a user