|
|
|
@ -201,8 +201,8 @@ function renderBracket(options) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else if ( |
|
|
|
} else if ( |
|
|
|
(realRoundIndex == roundIndex && roundIndex <= finalRoundIndex) || |
|
|
|
(roundIndex == finalRoundIndex && realRoundIndex != 0) || |
|
|
|
(realRoundIndex != roundIndex && roundIndex < finalRoundIndex) |
|
|
|
roundIndex < finalRoundIndex |
|
|
|
) { |
|
|
|
) { |
|
|
|
const parentIndex1 = matchRealIndex * 2 + 1; |
|
|
|
const parentIndex1 = matchRealIndex * 2 + 1; |
|
|
|
const parentIndex2 = matchRealIndex * 2 + 2; |
|
|
|
const parentIndex2 = matchRealIndex * 2 + 2; |
|
|
|
@ -332,7 +332,10 @@ function renderBracket(options) { |
|
|
|
|
|
|
|
|
|
|
|
// Position title above the first match
|
|
|
|
// Position title above the first match
|
|
|
|
titleDiv.style.top = `${-80}px`; // Adjust the 60px offset as needed
|
|
|
|
titleDiv.style.top = `${-80}px`; // Adjust the 60px offset as needed
|
|
|
|
if (roundIndex == finalRoundIndex && realRoundIndex == 0) { |
|
|
|
if ( |
|
|
|
|
|
|
|
(roundIndex == finalRoundIndex && realRoundIndex == 0) || |
|
|
|
|
|
|
|
isBroadcast == true |
|
|
|
|
|
|
|
) { |
|
|
|
titleDiv.style.top = `${top - 80}px`; // Adjust the 60px offset as needed
|
|
|
|
titleDiv.style.top = `${top - 80}px`; // Adjust the 60px offset as needed
|
|
|
|
} |
|
|
|
} |
|
|
|
titleDiv.style.position = "absolute"; |
|
|
|
titleDiv.style.position = "absolute"; |
|
|
|
@ -442,5 +445,7 @@ function renderBracket(options) { |
|
|
|
`${spacerHeight}px`; |
|
|
|
`${spacerHeight}px`; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isBroadcast == false) { |
|
|
|
adjustSpacerHeight(); |
|
|
|
adjustSpacerHeight(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|