iPad header: stop Mute toggle expanding; fix mixer overflow into CPU meters

- The switch Toggle filled the row, pushing Bypass / Mute / Help / MIDI far right
  under the scope. fixedSize keeps them contiguous next to Tempo/Tuner under the
  title.
- BoardBarView's control column (segmented picker + two sliders + bordered mute)
  is taller than 92pt with iOS control metrics and overflowed into the CPU meters;
  raise barHeight to 110.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 21:21:44 -07:00
parent 22ae022143
commit 6a3c4fdca9
2 changed files with 6 additions and 1 deletions
@@ -41,7 +41,9 @@ public struct BoardBarView: View {
// MARK: - Layout constants
private static let barSpacing: CGFloat = 10
private static let barHeight: CGFloat = 92
// Tall enough for the control column's three rows of (iOS-chunky) segmented picker + sliders +
// bordered mute button, so it doesn't overflow into the CPU meters below.
private static let barHeight: CGFloat = 110
private static let cellSpacing: CGFloat = 8
private static let cellWidth: CGFloat = 104
private static let cellInnerSpacing: CGFloat = 5
@@ -550,11 +550,14 @@ public struct ShoeGazeBuilderView: View {
TempoView(shoeGaze: shoeGaze)
TunerView(shoeGaze: shoeGaze)
rigBypassButton
// fixedSize stops the switch Toggle from expanding to fill the row (which pushed
// the following controls far to the right, under the scope).
Toggle("Mute rig", isOn: Binding(
get: { shoeGaze.tunerMutesRig },
set: { shoeGaze.tunerMutesRig = $0 }
))
.toggleStyle(.switch)
.fixedSize()
helpButton
if let midi: MIDIController = midi {
MIDIIndicatorView(controller: midi) { showMIDISheet = true }