From e839447aa8480aca40154a97f2ca957207f6407a Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sun, 28 Jun 2026 16:01:07 -0700 Subject: [PATCH] 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 --- .../LyrebirdShoeGazeUI/PedalPaletteView.swift | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift b/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift index ae51a1a..1878d83 100644 --- a/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift +++ b/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift @@ -155,21 +155,24 @@ public struct PedalPaletteView: View { } } - /// Fixed-width-card row for a horizontal scroller: leading filter + PEDALS group, a divider, - /// then the ROUTING group. + /// Horizontal scroller: a PEDALS row (leading filter + colour-coded cards) with the ROUTING + /// row stacked beneath it. private var horizontalBody: some View { - HStack(alignment: .top, spacing: PedalPaletteView.rowSpacing) { - VStack(alignment: .leading, spacing: PedalPaletteView.rowSpacing) { - sectionTitle("PEDALS") - filterMenu + VStack(alignment: .leading, spacing: PedalPaletteView.sectionSpacing) { + HStack(alignment: .top, spacing: PedalPaletteView.rowSpacing) { + VStack(alignment: .leading, spacing: PedalPaletteView.rowSpacing) { + sectionTitle("PEDALS") + filterMenu + } + ForEach(visiblePedalNames, id: \.self) { name in + pedalRow(name) + } } - ForEach(visiblePedalNames, id: \.self) { name in - pedalRow(name) - } - Divider().overlay(Color.white.opacity(PedalPaletteView.cardBorderOpacity)) - sectionTitle("ROUTING") - ForEach(PedalPaletteView.routingOptions, id: \.title) { option in - routingCard(title: option.title, caption: option.caption, action: option.action) + HStack(alignment: .top, spacing: PedalPaletteView.rowSpacing) { + sectionTitle("ROUTING") + ForEach(PedalPaletteView.routingOptions, id: \.title) { option in + routingCard(title: option.title, caption: option.caption, action: option.action) + } } } }