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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user