Merge station count into the top explainer

The 'N stations within X' caption now lives in the header explainer
(Closest/Cheapest + radius + count on one line); the Distance section
shows just the picker.
This commit is contained in:
FuelBoard Contributor
2026-08-12 08:02:38 +01:00
parent 75cfb3681d
commit a6b1e24cd6
+2 -7
View File
@@ -30,11 +30,11 @@ struct StationsView: View {
Section { Section {
if let location { if let location {
if sortMode == .closest { if sortMode == .closest {
Text("Closest \(selectedFuel.displayName) stations — nearest first, best value within \(stationLimit) \(distanceUnit.label).") Text("Closest \(selectedFuel.displayName) stations — nearest first, best value within \(stationLimit) \(distanceUnit.label) · \(totalCount) stations")
.font(.footnote) .font(.footnote)
.foregroundStyle(.secondary) .foregroundStyle(.secondary)
} else { } else {
Text("Cheapest \(selectedFuel.displayName) within \(stationLimit) \(distanceUnit.label) — tap a station for directions.") Text("Cheapest \(selectedFuel.displayName) within \(stationLimit) \(distanceUnit.label) \(totalCount) stations · tap a station for directions.")
.font(.footnote) .font(.footnote)
.foregroundStyle(.secondary) .foregroundStyle(.secondary)
} }
@@ -75,11 +75,6 @@ struct StationsView: View {
FuelStore.saveStationLimit(newValue) FuelStore.saveStationLimit(newValue)
} }
.padding(.vertical, 2) .padding(.vertical, 2)
if sortMode != .closest {
Text("\(totalCount) stations within \(stationLimit) \(distanceUnit.label)")
.font(.caption2)
.foregroundStyle(.secondary)
}
} }
Section("Stations") { Section("Stations") {