From: Benjamin Auder Date: Mon, 9 Mar 2020 00:03:04 +0000 (+0100) Subject: More adapted confirm div size: follow current board size X-Git-Url: https://git.auder.net/variants/Chakart/pieces/%7B%7B%20asset%28%27mixstore/css/R.css?a=commitdiff_plain;h=f3fe29d815458e9bfca2295d16b1f6221040eb10;p=vchess.git More adapted confirm div size: follow current board size --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index d62e2ca7..282a3716 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1183,6 +1183,8 @@ export default { position: position, orientation: V.CanFlip ? this.game.mycolor : "w" }); + document.querySelector("#confirmDiv > .card").style.width = + boardDiv.offsetWidth + "px"; } else { // Incomplete information: just ask confirmation // Hide the board, because otherwise it could reveal infos