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
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user