Merge branch 'main' into timetoconfirm

timetoconfirm
Raz 7 months ago
commit d9982e2bfd
  1. 6
      tournaments/static/tournaments/js/tournament_bracket.js

@ -105,7 +105,7 @@ function renderBracket(options) {
// Create matches container // Create matches container
const matchesContainer = document.createElement("div"); const matchesContainer = document.createElement("div");
matchesContainer.className = "matches-container"; matchesContainer.className = "matches-container";
if (roundCount > 5 && doubleButterflyMode == true) { if (doubleButterflyMode == true) {
if (roundIndex >= finalRoundIndex - 1) { if (roundIndex >= finalRoundIndex - 1) {
matchesContainer.style.transform = `translateX(-50%)`; matchesContainer.style.transform = `translateX(-50%)`;
if (roundIndex >= finalRoundIndex + 2) { if (roundIndex >= finalRoundIndex + 2) {
@ -287,7 +287,7 @@ function renderBracket(options) {
} }
} }
if (roundCount > 5 && doubleButterflyMode == true) { if (doubleButterflyMode == true) {
if (roundIndex >= finalRoundIndex - 2) { if (roundIndex >= finalRoundIndex - 2) {
if (roundIndex == finalRoundIndex - 1) { if (roundIndex == finalRoundIndex - 1) {
matchDiv.classList.add("reverse-bracket"); matchDiv.classList.add("reverse-bracket");
@ -374,7 +374,7 @@ function renderBracket(options) {
<div class="outgoing-line ${isOutgoingLineIsDisabled ? "disabled" : ""}"></div> <div class="outgoing-line ${isOutgoingLineIsDisabled ? "disabled" : ""}"></div>
`; `;
if (roundCount > 5 && doubleButterflyMode == true) { if (doubleButterflyMode == true) {
if (roundIndex >= finalRoundIndex - 2) { if (roundIndex >= finalRoundIndex - 2) {
if (roundIndex === finalRoundIndex - 2) { if (roundIndex === finalRoundIndex - 2) {
if (matchIndex === 0) { if (matchIndex === 0) {

Loading…
Cancel
Save