From d8ea9bc8126bb89ab4fe30ee7708053b438e9763 Mon Sep 17 00:00:00 2001 From: Raz Date: Tue, 4 Mar 2025 23:30:43 +0100 Subject: [PATCH] bracket update --- tournaments/services/email_service.py | 2 +- tournaments/templates/tournaments/tournament_bracket.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tournaments/services/email_service.py b/tournaments/services/email_service.py index a43a2fe..8349693 100644 --- a/tournaments/services/email_service.py +++ b/tournaments/services/email_service.py @@ -69,7 +69,7 @@ class TournamentEmailService: if waiting_list_position >= 0: base_subject = "Liste d'attente" else: - base_subject = "Participation confirmé" + base_subject = "Participation confirmée" return TournamentEmailService.email_subject(tournament, base_subject) @staticmethod diff --git a/tournaments/templates/tournaments/tournament_bracket.html b/tournaments/templates/tournaments/tournament_bracket.html index 76ae6d9..53add55 100644 --- a/tournaments/templates/tournaments/tournament_bracket.html +++ b/tournaments/templates/tournaments/tournament_bracket.html @@ -94,9 +94,9 @@ function renderBracket() { matchesContainer.className = 'matches-container'; if (roundIndex >= finalRoundIndex - 1) { if (roundCount > 5) { - matchesContainer.style.transform = `translateX(-25%)`; + matchesContainer.style.transform = `translateX(-50%)`; if (roundIndex >= finalRoundIndex + 2) { - matchesContainer.style.transform = `translateX(-50%)`; + matchesContainer.style.transform = `translateX(-100%)`; } } } @@ -281,6 +281,7 @@ function renderBracket() { display: flex; gap: 40px; /* Increased to account for horizontal lines (20px on each side) */ position: relative; + margin-bottom: 80px; }