Smaller margin for endGame message
[vchess.git] / client / src / components / BaseGame.vue
index df2e8af..fdbd2c3 100644 (file)
@@ -275,6 +275,8 @@ export default {
         }
         this.vr = new V(fen);
         this.incheck = this.vr.getCheckSquares();
+        if (this.cursor >= 0) this.lastMove = this.moves[this.cursor];
+        else this.lastMove = null;
         document.getElementById("analyzeBtn").classList.remove("active");
       }
     },
@@ -430,10 +432,6 @@ export default {
         return;
       }
       if (!!received) {
-
-        if (this.mode == "analyze") { console.log("received move");
-          console.log(move); }
-
         if (this.mode == "analyze") this.toggleAnalyze();
         if (this.cursor < this.moves.length - 1)
           // To play a received move, cursor must be at the end of the game:
@@ -527,9 +525,6 @@ export default {
       };
       const afterMove = (smove, initurn) => {
         if (this.vr.turn != initurn) {
-
-console.log(smove);
-
           // Turn has changed: move is complete
           if (!smove.fen)
             // NOTE: only FEN of last sub-move is required (=> setting it here)
@@ -665,6 +660,7 @@ console.log(smove);
 <style lang="sass" scoped>
 [type="checkbox"]#modalEog+div .card
   min-height: 45px
+  max-width: 350px
 
 #baseGame
   width: 100%