diff --git a/app.js b/app.js index 363e26e..de7a46d 100644 --- a/app.js +++ b/app.js @@ -812,7 +812,7 @@ grid.innerHTML = ""; grid.classList.toggle('has-stars', false); if (!rows || !cols) return; - grid.style.gridTemplateColumns = `repeat(${rows}, 1fr)`; // flip to spread horizontally first + grid.style.gridTemplateColumns = `repeat(${cols}, 1fr)`; // layout vertically taller than wide for (let i = 0; i < (rows * cols); i++) { const dot = document.createElement('div'); dot.className = 'star-dot'; grid.appendChild(dot); }