diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index 3d8b792..b0c571a 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -500,9 +500,10 @@ public struct ShoeGazeBuilderView: View { /// horizontally scrollable row of panel toggles that open the composition sheets. private var compactHeader: some View { _ = transportTick - // Top row: title + Tempo/Tuner on the left, scope + transport on the right. The panel row - // (Rigs / Pedals / Settings / Bypass / Mute / help / MIDI) spans the FULL width beneath, so - // it is never clipped by the scope in the narrower portrait width. + // Top row: title on the left, then the performance controls filling the space to its right + // (a scroll view flexes to the gap between the title and the scope, so it never collides + // with the scope and scrolls when the width is tight). Scope + transport on the right; the + // composition sheet-openers get their own row beneath. return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { @@ -514,7 +515,7 @@ public struct ShoeGazeBuilderView: View { if shoeGaze.isRecording { recordingBadge } } - Spacer(minLength: ShoeGazeBuilderView.rowSpacing) + compactPerformanceRow // A narrow scope sits left of the transport cluster to use the header's dead space. ShoeGazeScopeView(shoeGaze: shoeGaze) @@ -536,9 +537,6 @@ public struct ShoeGazeBuilderView: View { } } - // Performance controls (tempo, tuner, and the rig-wide toggles) sit together on the row - // under the title; the composition sheet-openers get their own row beneath. - compactPerformanceRow compactPanelRow } }