Move detail approximation after verdict amount

This commit is contained in:
FuelBoard Contributor
2026-10-17 20:24:21 +01:00
parent c6e252d194
commit 7aa2485994
4 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ struct FuelSavingsCapsule: View {
HStack(spacing: compact ? 3 : 5) {
Image(systemName: Self.symbol(for: result.status))
.accessibilityHidden(true)
Text(result.capsuleHeadline())
Text(compact ? result.capsuleHeadline() : result.detailCapsuleHeadline())
.lineLimit(1)
// Measured on a 393pt screen: the capsule is handed ~101pt, of
// which the icon, its spacing and the 8pt padding either side
+1 -1
View File
@@ -148,7 +148,7 @@ struct BestValueDetailCard: View {
Spacer(minLength: 8)
VStack(alignment: .trailing, spacing: 4) {
FuelSavingsCapsule(result: result, compact: false)
.accessibilityLabel(result.spokenHeadline())
.accessibilityLabel(result.detailCapsuleSpokenHeadline())
comparison(result)
}
}