Revert station name to natural width (truncates, does not fill row); price stays on row below right-aligned

This commit is contained in:
FuelBoard Contributor
2026-08-11 17:29:13 +01:00
parent 2d95c4e1d6
commit 5a08a3a2fa
+4 -3
View File
@@ -233,13 +233,14 @@ struct StationRow: View {
.overlay(Circle().stroke(Color.primary.opacity(0.08), lineWidth: 1)) .overlay(Circle().stroke(Color.primary.opacity(0.08), lineWidth: 1))
.shadow(color: .black.opacity(0.08), radius: 2, y: 1) .shadow(color: .black.opacity(0.08), radius: 2, y: 1)
// Name fills the whole row width; price + details on the row below. // Name at natural width (does NOT fill the row truncates);
// price + details stay on the row below, right-aligned.
VStack(alignment: .leading, spacing: 3) { VStack(alignment: .leading, spacing: 3) {
HStack(alignment: .firstTextBaseline, spacing: 6) { HStack(alignment: .firstTextBaseline, spacing: 6) {
Text(station.name) Text(station.name)
.font(.headline) .font(.headline)
.lineLimit(2) .lineLimit(1)
.layoutPriority(1) .truncationMode(.tail)
if isTopResult { if isTopResult {
Text("TOP") Text("TOP")
.font(.caption2.bold()) .font(.caption2.bold())