fix linelimit in player label

show or hide teams weight using the bool of tournament and the tournament level
sync2
Raz 1 year ago
parent 9419b60507
commit 0719d1a85d
  1. 2
      PadelClub/Data/Tournament.swift
  2. 2
      PadelClub/Views/Team/TeamRowView.swift

@ -1483,7 +1483,7 @@ defer {
} }
func hideWeight() -> Bool { func hideWeight() -> Bool {
return tournamentLevel.hideWeight() return hideTeamsWeight || tournamentLevel.hideWeight()
} }
func isAnimation() -> Bool { func isAnimation() -> Bool {

@ -43,7 +43,7 @@ struct TeamRowView: View {
} else { } else {
if team.players().isEmpty == false { if team.players().isEmpty == false {
ForEach(team.players()) { player in ForEach(team.players()) { player in
Text(player.playerLabel()) Text(player.playerLabel()).lineLimit(1).truncationMode(.tail)
} }
} else { } else {
Text("Place réservée") Text("Place réservée")

Loading…
Cancel
Save