Some fixes
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-08-27 09:15:15 +02:00
parent 6888c1ac15
commit 54ada21e5c
4 changed files with 4 additions and 2 deletions

View File

@@ -221,6 +221,7 @@ class ContestantsController < ApplicationController
@contest = @contestant.contest
@puzzles = @contest.puzzles.where(hidden: false).or(@contest.puzzles.where(hidden: nil)).order(:id)
@completion = Completion.new
@completion.contest = @contest
@completion.code = @contest.code
render "completions/_form", locals: { completion: @completion, submit_text: t("helpers.buttons.validate"), method: :post, url: "/public/p/#{params[:contestant_id]}" }

View File

@@ -5,7 +5,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 - ${210 + tabsEl.offsetHeight}px)`;
}
adaptHeight();

View File

@@ -1,6 +1,7 @@
css:
@media (max-width: 800px) {
.mobile-single { display: block !important; }
#qrcode { display: none; }
.desktop-single { display: none; }
#scoreboard-switches { display: none; }
.stopwatch { font-size: 50px !important; }

View File

@@ -49,7 +49,7 @@ html
- if active_page("/public/event/") == "active"
= @contest.event.name
- if @qrcode
.float-end style="width: 80px; height: 80px;"
.float-end style="width: 80px; height: 80px;" id="qrcode"
= @qrcode.html_safe
= render "event_nav"
- else