From 5a08a3a2fa0f156524cdbcd482e9ca9175fbb2b1 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Tue, 11 Aug 2026 17:29:13 +0100 Subject: [PATCH] Revert station name to natural width (truncates, does not fill row); price stays on row below right-aligned --- FuelBoard/ContentView.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FuelBoard/ContentView.swift b/FuelBoard/ContentView.swift index 0c5c9c3..641acde 100644 --- a/FuelBoard/ContentView.swift +++ b/FuelBoard/ContentView.swift @@ -233,13 +233,14 @@ struct StationRow: View { .overlay(Circle().stroke(Color.primary.opacity(0.08), lineWidth: 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) { HStack(alignment: .firstTextBaseline, spacing: 6) { Text(station.name) .font(.headline) - .lineLimit(2) - .layoutPriority(1) + .lineLimit(1) + .truncationMode(.tail) if isTopResult { Text("TOP") .font(.caption2.bold())