From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 10 May 2021 19:31:04 +0000 (+0200) Subject: Fix 8-pieces X-Git-Url: https://git.auder.net/variants/Chakart/doc/scripts/css/pieces/index.css?a=commitdiff_plain;h=01ad8e179268dc62efef0823edde2b09236f9476;p=vchess.git Fix 8-pieces --- 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