Revert station name to natural width (truncates, does not fill row); price stays on row below right-aligned
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user