Station detail: price above its age, and the verdict caption on its own line
- More info lists the fuel price first, with "Price updated" beneath it: the price is what the row is about, the age qualifies it. - The detail sheet stacks "vs closest eligible station" under the verdict capsule, matching the listing rows, so the caption no longer shares a line with the verdict it describes.
This commit is contained in:
@@ -149,14 +149,17 @@ struct FuelSavingsSummaryView: View {
|
||||
// room for. The old shape led with a status word + headline that
|
||||
// matched neither the listing nor each other.
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
HStack(alignment: .firstTextBaseline, spacing: 6) {
|
||||
// Same shape as the listing rows: the capsule takes the line
|
||||
// and the comparison caption sits directly beneath it, so the
|
||||
// verdict never competes for width with its own caption.
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
capsule(for: result, compact: false)
|
||||
.accessibilityLabel(accessibilityHeadline(for: result))
|
||||
Text(comparisonLabel(for: result))
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(1)
|
||||
.layoutPriority(1)
|
||||
.minimumScaleFactor(0.85)
|
||||
.accessibilityLabel("Comparison: \(comparisonLabel(for: result))")
|
||||
}
|
||||
LabeledContent("Your fill-up", value: amountText)
|
||||
|
||||
Reference in New Issue
Block a user