feat(ui): reveal the full board on resign (close history, zoom out)
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 9s
CI / integration (pull_request) Successful in 15s
CI / ui (pull_request) Successful in 50s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 58s

After the player confirms a resign, close the move-history drawer (portrait;
the landscape dock is unaffected) and zoom the board out if it was magnified,
so the resigned game shows its full final board.
This commit is contained in:
Ilia Denisov
2026-06-17 13:33:27 +02:00
parent 2f4aa1b75b
commit 2c24d54047
2 changed files with 28 additions and 0 deletions
+4
View File
@@ -667,6 +667,10 @@
busy = true;
try {
applyMoveResult(await gateway.resign(id));
// Reveal the final board once the game is resigned: close the move-history drawer
// (portrait — the landscape dock is unaffected) and zoom out if it was magnified.
historyOpen = false;
zoomed = false;
} catch (e) {
handleError(e);
} finally {