Fix scoreboard container height when the stopwatch is shown
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
function adaptHeight() {
|
||||
const tabsEl = document.getElementById('event-nav');
|
||||
const scoreboardContainerEl = document.getElementById('scoreboard-container');
|
||||
scoreboardContainerEl.style.height = `calc(100vh - ${180 + tabsEl.offsetHeight}px)`;
|
||||
scoreboardContainerEl.style.height = `calc(100vh - ${190 + tabsEl.offsetHeight}px)`;
|
||||
}
|
||||
|
||||
adaptHeight();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
function adaptHeight() {
|
||||
const tabsEl = document.getElementById('event-nav');
|
||||
const scoreboardContainerEl = document.getElementById('scoreboard-container');
|
||||
scoreboardContainerEl.style.height = `calc(100vh - ${210 + tabsEl.offsetHeight}px)`;
|
||||
scoreboardContainerEl.style.height = `calc(100vh - ${220 + tabsEl.offsetHeight}px)`;
|
||||
}
|
||||
|
||||
adaptHeight();
|
||||
|
||||
@@ -12,7 +12,7 @@ css:
|
||||
|
||||
turbo-frame id="scoreboard"
|
||||
- if @contest.show_stopwatch
|
||||
.stopwatch id="display-time" style="font-size: 60px; font-weight: 400; margin-bottom: 0; text-align: center;"
|
||||
.stopwatch id="display-time" style="font-size: 60px; font-weight: 400; margin-bottom: 0; margin-top: -25px; text-align: center;"
|
||||
= render "stopwatch_js"
|
||||
a.btn.btn-primary href="" id="refresh-button" style="display: none;"
|
||||
.mobile-single style="display: none;"
|
||||
|
||||
Reference in New Issue
Block a user