Tighten game score format to "2:3" / "-:-"

Drop the spaces around the colon. Score field is still monospaced so
the home logo lines up across rows; the tighter format reads more
like a hockey score and frees up some horizontal slack on narrow
widths.
This commit is contained in:
2026-04-25 15:32:29 -04:00
parent e06abd491f
commit 8df88e10d6
+2 -2
View File
@@ -47,7 +47,7 @@ struct GameRow: View {
.lineLimit(1) .lineLimit(1)
.fixedSize() .fixedSize()
Text(showScore ? scoreText : "- : -") Text(showScore ? scoreText : "-:-")
.font(.title3.monospaced()) .font(.title3.monospaced())
.fontWeight(.bold) .fontWeight(.bold)
.foregroundStyle(.secondary) .foregroundStyle(.secondary)
@@ -102,7 +102,7 @@ struct GameRow: View {
private var scoreText: String { private var scoreText: String {
let a = game.awayTeam.score ?? 0 let a = game.awayTeam.score ?? 0
let h = game.homeTeam.score ?? 0 let h = game.homeTeam.score ?? 0
return "\(a) : \(h)" return "\(a):\(h)"
} }
private func open() { private func open() {