Some changes to the logic in Rules.vue: weird behavior, TODO
[vchess.git] / client / src / components / Board.vue
index 2783381..4da6427 100644 (file)
@@ -157,7 +157,7 @@ export default {
         );
       })
     );
-    const playingColor = userColor || "w"; //default for an observer
+    const playingColor = this.userColor || "w"; //default for an observer
     let elementArray = [choices, gameDiv];
     if (!!this.vr.reserve)
     {
@@ -370,6 +370,8 @@ export default {
 .reserve-row-1
   margin-bottom: 15px
 
+// NOTE: no variants with reserve of size != 8
+
 div.board
   float: left
   height: 0
@@ -388,8 +390,6 @@ div.board11
   width: 9.09%
   padding-bottom: 9.1%
 
-// NOTE: no variants with reserve of size != 8
-
 .game
   width: 80vh
   margin: 0 auto