render(h) {
if (this.moves.length == 0)
return;
- if (this.moves[0].color == "b")
- this.moves.unshift({color: "w", notation: "..."});
let tableContent = [];
let moveCounter = 0;
let tableRow = undefined;
{ },
[h(
"table",
- { },
+ {
+ "class": {
+ "moves-list": true,
+ },
+ },
tableContent
)]
);
},
};
</script>
+
+<style lang="sass" scoped>
+.moves-list
+ min-width: 250px
+td.highlight-lm
+ background-color: plum
+</style>