bracket update

redesign-tournament-list
Raz 8 months ago
parent ca5316f6d7
commit d8ea9bc812
  1. 2
      tournaments/services/email_service.py
  2. 5
      tournaments/templates/tournaments/tournament_bracket.html

@ -69,7 +69,7 @@ class TournamentEmailService:
if waiting_list_position >= 0: if waiting_list_position >= 0:
base_subject = "Liste d'attente" base_subject = "Liste d'attente"
else: else:
base_subject = "Participation confirmé" base_subject = "Participation confirmée"
return TournamentEmailService.email_subject(tournament, base_subject) return TournamentEmailService.email_subject(tournament, base_subject)
@staticmethod @staticmethod

@ -94,9 +94,9 @@ function renderBracket() {
matchesContainer.className = 'matches-container'; matchesContainer.className = 'matches-container';
if (roundIndex >= finalRoundIndex - 1) { if (roundIndex >= finalRoundIndex - 1) {
if (roundCount > 5) { if (roundCount > 5) {
matchesContainer.style.transform = `translateX(-25%)`;
if (roundIndex >= finalRoundIndex + 2) {
matchesContainer.style.transform = `translateX(-50%)`; matchesContainer.style.transform = `translateX(-50%)`;
if (roundIndex >= finalRoundIndex + 2) {
matchesContainer.style.transform = `translateX(-100%)`;
} }
} }
} }
@ -281,6 +281,7 @@ function renderBracket() {
display: flex; display: flex;
gap: 40px; /* Increased to account for horizontal lines (20px on each side) */ gap: 40px; /* Increased to account for horizontal lines (20px on each side) */
position: relative; position: relative;
margin-bottom: 80px;
} }

Loading…
Cancel
Save