More adapted confirm div size: follow current board size
[vchess.git] / client / src / views / Game.vue
index fe613ec..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
@@ -1340,8 +1342,6 @@ span.yourturn
 
 .diagram
   margin: 0 auto
-  max-width: 400px
-  // width: 100% required for Firefox
   width: 100%
 
 #buttonsConfirm