Fix number of QR codes shown
Some checks failed
CI / scan_ruby (push) Failing after 19s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 14s
CI / test (push) Failing after 1m54s

This commit is contained in:
sto
2025-11-25 09:58:14 +01:00
parent 768af7c3e9
commit 7a80c434af
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
.col.d-flex.flex-column style="height: calc(100% - 200px)" .col.d-flex.flex-column style="height: calc(100% - 200px)"
.d-flex.flex-column style="overflow-y: auto;" .d-flex.flex-column style="overflow-y: auto;"
- for row in 0..((@contestants.length - 1) / 5) - for row in 0..((@contestants.length - 1) / 4)
.mt-4.d-flex.flex-row .mt-4.d-flex.flex-row
- for col in 0..3 - for col in 0..3
- if row * 4 + col < @contestants.length - if row * 4 + col < @contestants.length

View File

@@ -1,7 +1,7 @@
h1.text-center.mt-4.mb-4 = @contest.name h1.text-center.mt-4.mb-4 = @contest.name
.d-flex.flex-column.align-items-center .d-flex.flex-column.align-items-center
- for row in 0..((@contestants.length - 1) / 5) - for row in 0..((@contestants.length - 1) / 4)
.mt-4.d-flex.flex-row .mt-4.d-flex.flex-row
- for col in 0..3 - for col in 0..3
- if row * 4 + col < @contestants.length - if row * 4 + col < @contestants.length