ui(cabinet): own category after amps + double-width card + stable selector id
- Add a dedicated PedalCategory.cabinet (tweed tan), placed right after Amp Model, and remap the Cabinet pedal to it (was buried in EQ & Filter). Move "Cabinet" in the palette preferredOrder to just after the amps. - CabinetPedal is now double-width (widthUnits 2): three selectors (Cab / Mic / Mic B) crowded at single width, clipping the leading Cab caption and overlapping dials (a drag near the Mic/Mic B boundary could land on the neighbor's gesture — the "moving Mic moved Mic B" report). - Harden the selector-row ForEach: key by the (unique-per-pedal) selector label instead of the array offset, so each selector keeps a stable SwiftUI identity across board rebuilds and can't inherit a sibling's drag state. 669 tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,10 @@ public final class CabinetPedal: Pedal {
|
||||
"Speaker-cabinet impulse-response convolution with selectable built-in voicings."
|
||||
}
|
||||
|
||||
/// Double-width card — three selectors (Cab / Mic / Mic B) need the room; at single width the
|
||||
/// dials crowd and the leading selector's caption clips.
|
||||
public override var widthUnits: Int { 2 }
|
||||
|
||||
// MARK: - Parameters
|
||||
|
||||
/// Selected cabinet voicing as an index into ``CabinetVoice/allCases``. Snaps to integer
|
||||
|
||||
Reference in New Issue
Block a user