Price right-aligned on second row; word-capitalise station titles (keep BP/MFG/ASDA)
This commit is contained in:
+11
-11
@@ -229,6 +229,17 @@ struct StationRow: View {
|
||||
}
|
||||
|
||||
HStack(spacing: 5) {
|
||||
Text("\(station.address), \(station.postcode)")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(1)
|
||||
Spacer(minLength: 8)
|
||||
if let location {
|
||||
Text(String(format: "%.1f km", station.distanceKM(to: location.lat, lng2: location.lng)))
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
.monospacedDigit()
|
||||
}
|
||||
if let price = station.prices[fuel] {
|
||||
Circle()
|
||||
.fill(ragColor)
|
||||
@@ -242,17 +253,6 @@ struct StationRow: View {
|
||||
.foregroundStyle(ragColor)
|
||||
}
|
||||
}
|
||||
Text("\(station.address), \(station.postcode)")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(1)
|
||||
Spacer(minLength: 8)
|
||||
if let location {
|
||||
Text(String(format: "%.1f km", station.distanceKM(to: location.lat, lng2: location.lng)))
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
.monospacedDigit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user