Flip hint grid orientation to reduce vertical scroll

This commit is contained in:
chris 2025-11-20 09:20:23 -05:00
parent 850b6ab774
commit 393d57eb7c

2
app.js
View File

@ -782,7 +782,7 @@
function drawHintGrid(rows, cols) { function drawHintGrid(rows, cols) {
const grid = document.getElementById('hint-grid'); const grid = document.getElementById('hint-grid');
grid.innerHTML = ""; grid.innerHTML = "";
grid.style.gridTemplateColumns = `repeat(${cols}, 1fr)`; grid.style.gridTemplateColumns = `repeat(${rows}, 1fr)`; // flip to spread horizontally first
for (let i = 0; i < (rows * cols); i++) { for (let i = 0; i < (rows * cols); i++) {
const dot = document.createElement('div'); dot.className = 'star-dot'; grid.appendChild(dot); const dot = document.createElement('div'); dot.className = 'star-dot'; grid.appendChild(dot);
} }