Stack the routing row under the pedal picker

Move the ROUTING cards (Stereo Split / Parallel Split / Merge to Mono) from
the right of the horizontal pedal strip to their own row beneath the pedal
cards, using the space under the picker.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-28 16:01:07 -07:00
parent a21121e120
commit e839447aa8
@@ -155,9 +155,10 @@ public struct PedalPaletteView: View {
} }
} }
/// Fixed-width-card row for a horizontal scroller: leading filter + PEDALS group, a divider, /// Horizontal scroller: a PEDALS row (leading filter + colour-coded cards) with the ROUTING
/// then the ROUTING group. /// row stacked beneath it.
private var horizontalBody: some View { private var horizontalBody: some View {
VStack(alignment: .leading, spacing: PedalPaletteView.sectionSpacing) {
HStack(alignment: .top, spacing: PedalPaletteView.rowSpacing) { HStack(alignment: .top, spacing: PedalPaletteView.rowSpacing) {
VStack(alignment: .leading, spacing: PedalPaletteView.rowSpacing) { VStack(alignment: .leading, spacing: PedalPaletteView.rowSpacing) {
sectionTitle("PEDALS") sectionTitle("PEDALS")
@@ -166,13 +167,15 @@ public struct PedalPaletteView: View {
ForEach(visiblePedalNames, id: \.self) { name in ForEach(visiblePedalNames, id: \.self) { name in
pedalRow(name) pedalRow(name)
} }
Divider().overlay(Color.white.opacity(PedalPaletteView.cardBorderOpacity)) }
HStack(alignment: .top, spacing: PedalPaletteView.rowSpacing) {
sectionTitle("ROUTING") sectionTitle("ROUTING")
ForEach(PedalPaletteView.routingOptions, id: \.title) { option in ForEach(PedalPaletteView.routingOptions, id: \.title) { option in
routingCard(title: option.title, caption: option.caption, action: option.action) routingCard(title: option.title, caption: option.caption, action: option.action)
} }
} }
} }
}
// MARK: - Subviews // MARK: - Subviews