feat(web): add undo button directly on the game board
Build and Deploy / build-and-push (push) Successful in 4m37s

Places a floating "↩ Undo" button at the bottom-right of the green felt
surface so it is visible without looking in the header. Both the board
button and the header button share the same handler; both track
undo_stack_len and disable when nothing can be undone.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-15 17:32:13 -07:00
parent 005e29d1ab
commit e17667d034
3 changed files with 20 additions and 7 deletions
+11
View File
@@ -98,6 +98,16 @@ button:disabled { opacity: 0.4; cursor: default; }
/* ── Board ───────────────────────────────────────────────────────────── */
.board-undo {
position: absolute;
bottom: 24px;
right: 24px;
z-index: 50;
font-size: 15px;
padding: 8px 20px;
pointer-events: auto;
}
main {
flex: 1;
display: flex;
@@ -108,6 +118,7 @@ main {
/* Full-bleed felt surface — flex:1 reliably fills main's remaining height. */
#board {
position: relative;
flex: 1;
background: var(--felt);
display: flex;