More adapted confirm div size: follow current board size
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 9 Mar 2020 00:03:04 +0000 (01:03 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 9 Mar 2020 00:03:04 +0000 (01:03 +0100)
client/src/views/Game.vue

index d62e2ca..282a371 100644 (file)
@@ -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