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) + } } } }