Flip hint grid orientation to reduce vertical scroll
This commit is contained in:
parent
850b6ab774
commit
393d57eb7c
2
app.js
2
app.js
@ -782,7 +782,7 @@
|
||||
function drawHintGrid(rows, cols) {
|
||||
const grid = document.getElementById('hint-grid');
|
||||
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++) {
|
||||
const dot = document.createElement('div'); dot.className = 'star-dot'; grid.appendChild(dot);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user