Some small enhancements and fixes
[vchess.git] / client / src / views / Game.vue
index d62e2ca..d920053 100644 (file)
@@ -11,7 +11,7 @@ main
     .card
       label.modal-close(for="modalChat")
       #participants
-        span {{ Object.keys(people).length + " " + st.tr["participant(s):"] }} 
+        span {{ st.tr["Participant(s):"] }} 
         span(
           v-for="p in Object.values(people)"
           v-if="p.focus && !!p.name"
@@ -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