]> git.cworth.org Git - lmno.games/commitdiff
Make the rack sticky
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 14:22:15 +0000 (09:22 -0500)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 16:29:48 +0000 (11:29 -0500)
If the user needs to start panning the grid around, we want their rack
to always stay visible.

letterrip/letterrip.css

index 09243eabfc9b18bc099915a04b905f8d2f7f0936..32458c1e2302b1023fbcd7c8e358bdb2225de2c6 100644 (file)
   border-color: #e67e22;
 }
 
-/* Tile rack */
+/* Tile rack — sticks to the bottom of the viewport so it's always
+   visible while scrolling the board. */
 .tile-rack {
   display: flex;
   flex-wrap: wrap;
   background: #ecf0f1;
   border: 2px dashed #bdc3c7;
   border-radius: 6px;
-  margin-bottom: 1em;
+  position: sticky;
+  bottom: 0;
+  z-index: 10;
 }
 
 .tile-rack.drag-over {