From f3fe29d815458e9bfca2295d16b1f6221040eb10 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 9 Mar 2020 01:03:04 +0100 Subject: [PATCH] More adapted confirm div size: follow current board size --- client/src/views/Game.vue | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.44.0