1.1.1: move info button to top-left; fix empty-lane drag-drop
- PedalView: the ⓘ info button now sits under the top-left corner screw instead of on the name plate. - BoardFlowView: empty region lanes (Stereo Unzip / Split / Parallel) were nearly transparent, so their drop target had no hit area and releases landed on nothing. Add contentShape(Rectangle()) so the whole lane frame accepts drops. (Core lane append already worked — verified by existing API tests.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -325,6 +325,10 @@ public struct BoardFlowView: View {
|
||||
}
|
||||
}
|
||||
.frame(minWidth: BoardFlowView.laneMinWidth, alignment: .leading)
|
||||
// Make the whole lane frame hit-testable: an empty lane is mostly transparent, so without
|
||||
// this the drop target has almost no area and releases land on nothing (the bug where
|
||||
// dropping into an empty Stereo Unzip / Split / Parallel lane did nothing).
|
||||
.contentShape(Rectangle())
|
||||
.overlay { dropOutline(active: dropTarget == laneID) }
|
||||
.dropDestination(for: String.self) { items, _ in
|
||||
handleLaneDrop(items, lane: lane)
|
||||
|
||||
Reference in New Issue
Block a user