Fixes
[vchess.git] / client / src / components / MoveList.vue
index 90b76b4..0dede66 100644 (file)
@@ -1,5 +1,5 @@
 <script>
-// Component for moves list on the right
+import { store } from "@/store";
 export default {
   name: 'my-move-list',
   props: ["moves","cursor","score","message","firstNum"],
@@ -102,7 +102,7 @@ export default {
     tableRow.children = moveCells;
     tableContent.push(tableRow);
     let rootElements = [];
-    if (this.score != "*")
+    if (!!this.score && this.score != "*")
     {
       const scoreDiv = h("div",
         {
@@ -113,7 +113,7 @@ export default {
         },
         [
           h("p", this.score),
-          h("p", this.message),
+          h("p", store.state.tr[this.message]),
         ]
       );
       rootElements.push(scoreDiv);
@@ -145,14 +145,6 @@ export default {
 <style lang="sass" scoped>
 .moves-list
   min-width: 250px
-@media screen and (max-width: 767px)
-  .moves-list
-    tr
-      display: flex
-      margin: 0
-      padding: 0
-      td
-        text-align: left
 td.highlight-lm
   background-color: plum
 </style>