|
|
|
|
@ -41,7 +41,11 @@ function renderBracket(options) { |
|
|
|
|
} |
|
|
|
|
const padding = 46 * roundTotalCount; // Account for some padding/margin
|
|
|
|
|
const availableWidth = screenWidth - padding; |
|
|
|
|
responsiveMatchWidth = Math.floor(availableWidth / roundTotalCount); |
|
|
|
|
let responsiveMatchWidth = Math.min( |
|
|
|
|
365, |
|
|
|
|
Math.max(365, Math.floor(availableWidth / roundTotalCount)), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
let topMargin = 0; |
|
|
|
|
if (isBroadcast) { |
|
|
|
|
responsiveMatchWidth = Math.min( |
|
|
|
|
@ -49,7 +53,13 @@ function renderBracket(options) { |
|
|
|
|
Math.floor(availableWidth / roundTotalCount), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if (roundTotalCount < 5) { |
|
|
|
|
if (roundTotalCount == 1) { |
|
|
|
|
topMargin = 240; |
|
|
|
|
} else if (roundTotalCount == 2) { |
|
|
|
|
topMargin = 180; |
|
|
|
|
} else if (roundTotalCount == 3) { |
|
|
|
|
topMargin = 120; |
|
|
|
|
} else if (roundTotalCount == 4) { |
|
|
|
|
topMargin = 60; |
|
|
|
|
} else { |
|
|
|
|
topMargin = 0; |
|
|
|
|
|