iPad header: close the gap between rows 1 and 2
The tall scope lived inside row 1, so it set row 1's height and left a gap above the Tempo/Tuner row. Put the three left rows in their own VStack (tight rowSpacing) with scope + transport as a right column spanning them. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -500,11 +500,13 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
/// horizontally scrollable row of panel toggles that open the composition sheets.
|
/// horizontally scrollable row of panel toggles that open the composition sheets.
|
||||||
private var compactHeader: some View {
|
private var compactHeader: some View {
|
||||||
_ = transportTick
|
_ = transportTick
|
||||||
// Row 1: title, then the rig-wide controls filling the space to its right (a scroll view
|
// Left column stacks the three tight rows; scope + transport form a right column spanning
|
||||||
// flexes to the gap between the title and the scope), then scope + transport. Row 2: Tempo /
|
// them, so the tall scope no longer sets row 1's height (which opened a gap above row 2).
|
||||||
// Tuner. Row 3: the composition sheet-openers.
|
// Row 1: title · [Bypass · Mute · Help · MIDI filling to the scope]
|
||||||
return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) {
|
// Row 2: Tempo · Tuner
|
||||||
HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
// Row 3: Rigs · Pedals · Settings
|
||||||
|
return HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
|
VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
VStack(alignment: .leading, spacing: 1) {
|
VStack(alignment: .leading, spacing: 1) {
|
||||||
Text("ShoeGaze").font(.headline).bold()
|
Text("ShoeGaze").font(.headline).bold()
|
||||||
@@ -512,9 +514,17 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
currentRigLabel
|
currentRigLabel
|
||||||
}
|
}
|
||||||
if shoeGaze.isRecording { recordingBadge }
|
if shoeGaze.isRecording { recordingBadge }
|
||||||
|
compactRigControlsRow
|
||||||
}
|
}
|
||||||
|
|
||||||
compactRigControlsRow
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
|
TempoView(shoeGaze: shoeGaze)
|
||||||
|
TunerView(shoeGaze: shoeGaze)
|
||||||
|
}
|
||||||
|
.environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled)
|
||||||
|
|
||||||
|
compactPanelRow
|
||||||
|
}
|
||||||
|
|
||||||
// A narrow scope sits left of the transport cluster to use the header's dead space.
|
// A narrow scope sits left of the transport cluster to use the header's dead space.
|
||||||
ShoeGazeScopeView(shoeGaze: shoeGaze)
|
ShoeGazeScopeView(shoeGaze: shoeGaze)
|
||||||
@@ -535,15 +545,6 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
|
||||||
TempoView(shoeGaze: shoeGaze)
|
|
||||||
TunerView(shoeGaze: shoeGaze)
|
|
||||||
}
|
|
||||||
.environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled)
|
|
||||||
|
|
||||||
compactPanelRow
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The rig-wide controls shown inline on the title row: Bypass / Mute / Help / MIDI.
|
/// The rig-wide controls shown inline on the title row: Bypass / Mute / Help / MIDI.
|
||||||
|
|||||||
Reference in New Issue
Block a user