feat(ui): abort-game button next to new-game

Shows only while a game is in progress (hidden otherwise), red-tinted
to distinguish from new-game. Hits POST /api/abort-game after a small
confirm prompt. Game-over event hides it again.
This commit is contained in:
ai-chess
2026-05-15 00:46:53 +03:00
parent 37bac9b0f6
commit e7c04a3d76
3 changed files with 21 additions and 9 deletions
+2
View File
@@ -162,6 +162,8 @@ button {
}
button:hover { background: #2e2e36; }
#live-btn { background: #3d342a; color: #f0d090; }
#abort-game { background: #3a2222; color: #e09080; border-color: #5a3030; }
#abort-game:hover { background: #4a2a2a; }
dialog {
background: #15151a; color: #e7e5e4; border: 1px solid #2a2a30;