More info sheet: give the two station actions their own card below the map

Sharing the map's section made the buttons read as part of the map card and
the map tap target. They now sit in their own section, rendering as a
separate card directly beneath the map.
This commit is contained in:
FuelBoard Contributor
2026-10-14 12:07:54 +01:00
parent 6983fa83cc
commit 1b2bdd46ea
+5 -4
View File
@@ -119,10 +119,11 @@ struct StationDetailView: View {
comment: "Accessibility hint for the tappable map preview in the More info sheet")) comment: "Accessibility hint for the tappable map preview in the More info sheet"))
} }
.listRowInsets(EdgeInsets()) .listRowInsets(EdgeInsets())
// Both actions sit on ONE line directly under the map: the }
// two things you can DO with a station belong with the // The two station actions live in their OWN section, so they
// station, not stranded at the foot of the sheet. Equal // render as a separate card BELOW the map instead of sharing the
// halves, so neither reads as the primary action. // map's card and looking attached to the map tap target.
Section {
HStack(spacing: 12) { HStack(spacing: 12) {
Button { Button {
openDirections() openDirections()