From 684e1cace30baf9cf5b9d8827ae6c86378a5dff1 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Wed, 26 Dec 2018 22:55:45 +0100 Subject: [PATCH] Crazyhouse: back to previous design; style to be improved --- TODO | 2 +- public/javascripts/components/game.js | 4 ++-- public/stylesheets/variant.sass | 4 ---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index 3f79e69f..0ab079df 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,7 @@ Finish rules translation in Spanish Design: final touch (gain extra space on top, using space on the right) -Crazyhouse: my reserve vertically on the right, opponent just below board +Crazyhouse: center reserves, grey if zero available, numbers superimposed Bug MarseilleRules turn issue in computer game (last move is wrong) diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index ac03c8fc..4c369e4c 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -443,7 +443,7 @@ Vue.component('my-game', { { myReservePiecesArray.push(h('div', { - 'class': {'board':true, ['board'+sizeY+'-reserve']:true}, + 'class': {'board':true, ['board'+sizeY]:true}, attrs: { id: this.getSquareId({x:sizeX+shiftIdx,y:i}) } }, [ @@ -467,7 +467,7 @@ Vue.component('my-game', { { oppReservePiecesArray.push(h('div', { - 'class': {'board':true, ['board'+sizeY+'-reserve']:true}, + 'class': {'board':true, ['board'+sizeY]:true}, attrs: { id: this.getSquareId({x:sizeX+(1-shiftIdx),y:i}) } }, [ diff --git a/public/stylesheets/variant.sass b/public/stylesheets/variant.sass index c5e38a89..355f3c84 100644 --- a/public/stylesheets/variant.sass +++ b/public/stylesheets/variant.sass @@ -161,10 +161,6 @@ div.board8 width: 12.5% padding-bottom: 12.5% -div.board8-reserve - width: 10% - padding-bottom: 10% - div.board10 width: 10% padding-bottom: 10% -- 2.44.0