|
|
|
@ -77,7 +77,9 @@ struct TournamentCellView: View { |
|
|
|
VStack(alignment: .leading, spacing: 0.0) { |
|
|
|
VStack(alignment: .leading, spacing: 0.0) { |
|
|
|
if let tournament = tournament as? Tournament { |
|
|
|
if let tournament = tournament as? Tournament { |
|
|
|
HStack { |
|
|
|
HStack { |
|
|
|
Text(tournament.locationLabel(displayStyle)).lineLimit(1) |
|
|
|
Text(tournament.locationLabel(displayStyle)) |
|
|
|
|
|
|
|
.lineLimit(1) |
|
|
|
|
|
|
|
.truncationMode(.tail) |
|
|
|
.font(.caption) |
|
|
|
.font(.caption) |
|
|
|
Spacer() |
|
|
|
Spacer() |
|
|
|
if tournament.isPrivate { |
|
|
|
if tournament.isPrivate { |
|
|
|
@ -96,6 +98,8 @@ struct TournamentCellView: View { |
|
|
|
HStack(alignment: .bottom) { |
|
|
|
HStack(alignment: .bottom) { |
|
|
|
Text(tournament.tournamentTitle(displayStyle, forBuild: build)) |
|
|
|
Text(tournament.tournamentTitle(displayStyle, forBuild: build)) |
|
|
|
.fontWeight(.semibold) |
|
|
|
.fontWeight(.semibold) |
|
|
|
|
|
|
|
.lineLimit(1) |
|
|
|
|
|
|
|
.truncationMode(.tail) |
|
|
|
if displayStyle == .wide, tournament.displayAgeAndCategory(forBuild: build) { |
|
|
|
if displayStyle == .wide, tournament.displayAgeAndCategory(forBuild: build) { |
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
Text(build.category.localizedLabel()) |
|
|
|
Text(build.category.localizedLabel()) |
|
|
|
@ -132,7 +136,9 @@ struct TournamentCellView: View { |
|
|
|
VStack(alignment: .leading) { |
|
|
|
VStack(alignment: .leading) { |
|
|
|
let sub = tournament.subtitleLabel(forBuild: build) |
|
|
|
let sub = tournament.subtitleLabel(forBuild: build) |
|
|
|
if sub.isEmpty == false { |
|
|
|
if sub.isEmpty == false { |
|
|
|
Text(sub).lineLimit(1) |
|
|
|
Text(sub) |
|
|
|
|
|
|
|
.lineLimit(1) |
|
|
|
|
|
|
|
.truncationMode(.tail) |
|
|
|
} |
|
|
|
} |
|
|
|
Text(tournament.durationLabel()) |
|
|
|
Text(tournament.durationLabel()) |
|
|
|
} |
|
|
|
} |
|
|
|
|