From 01ad8e179268dc62efef0823edde2b09236f9476 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 10 May 2021 21:31:04 +0200 Subject: [PATCH] Fix 8-pieces --- client/src/components/Board.vue | 2 +- client/src/variants/Eightpieces.js | 2 +- client/src/views/About.vue | 2 +- client/src/views/Hall.vue | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 5b8b9220..a8c0a39e 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -894,7 +894,7 @@ export default { </style> <style lang="sass" scoped> -@import "@/styles/_board_squares_img.sass"; +@import "@/styles/_board_squares_img.sass" //.game.reserve-div // TODO: would be cleaner to restrict width so that it doesn't overflow diff --git a/client/src/variants/Eightpieces.js b/client/src/variants/Eightpieces.js index 92a4a909..3808a16a 100644 --- a/client/src/variants/Eightpieces.js +++ b/client/src/variants/Eightpieces.js @@ -181,7 +181,7 @@ export class EightpiecesRules extends ChessRules { let pieceLine = { b: posParts[0], w: posParts[7].toLowerCase() }; let posBlack = { r: -1, n: -1, b: -1 }; const mapP = { r: 'j', n: 'l', b: 's' }; - ['w', 'b'].forEach(c => { + ['b', 'w'].forEach(c => { ['r', 'n', 'b'].forEach(p => { let pl = pieceLine[c]; let pos = -1; diff --git a/client/src/views/About.vue b/client/src/views/About.vue index ca6c7c17..9a12c82e 100644 --- a/client/src/views/About.vue +++ b/client/src/views/About.vue @@ -27,7 +27,7 @@ export default { <!-- Not scoped, because code is injected --> <style lang="sass"> #links - margin: var(--universal-margin); + margin: var(--universal-margin) & > a display: block </style> diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 707debe3..b7199a7b 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -1480,8 +1480,8 @@ div#peopleWrap > .card #chat > .card max-width: 100% - margin: 0; - border: none; + margin: 0 + border: none #players > p margin-left: 5px -- 2.44.0