]> git.cworth.org Git - lmno.games/commit
Several fixes for styling of the "blank modal" selector
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 21:44:58 +0000 (16:44 -0500)
committerCarl Worth <cworth@cworth.org>
Sat, 7 Mar 2026 13:19:16 +0000 (08:19 -0500)
commitf48f525ba6c1701f377bf83a65c883d499a7697f
tree9c72cacc168692b57b587a9d4f4af44f5096b19c
parent725f0671604383bbbdd92edebeb5bff30129eb92
Several fixes for styling of the "blank modal" selector

This is the modal dialog that pops up when the user clicks on a
blank tile to select what letter it represents. The changes in
this commit are:

1. Use the same appearance (referencing the same CSS class) for
   the tiles in this modal as for tiles in other contexts, (this
   replaces the previous custom styling which was white text on
   a light background and hard to read).

2. Restructure the modal so that it is centered over the grid
   rather than centered over the viewport (also constrain the
   rack to not be wider than the grid).

3. Fix a bug that resulted from the user cancelling a selection of a
   blank tile, (it was "returned" to the rack before being properly
   removed from the rack, resulting in two occurences of the same tile
   on the rack). See the reassign_true logic in this commit for the
   relevant fix.
letterrip/letterrip.css
letterrip/letterrip.jsx