]> git.cworth.org Git - lmno.games/commit
Compute initial grid size to be no larger than fits on the screen
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 14:09:32 +0000 (09:09 -0500)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 16:29:48 +0000 (11:29 -0500)
commitb12b92561a6519fd74bf4e76140e2d489f53f63b
tree160aaaa5a2e1b916142cfb6bcbe053777332521d
parent76a08eb0aaad955470827c7eb0ac4fb7fcaa44a3
Compute initial grid size to be no larger than fits on the screen

Nobody wants a UI that starts off with a horizontal scrollbar!

But the 10x10 initial grid wasn't fitting on my mobile device. So
dynamically compute a smaller grid size that will fit.

Also, rather than hard-coding the cell size in the computation of the
grid size, use a --cell-size custom property.
letterrip/letterrip.css
letterrip/letterrip.jsx