From 7aa548e72ba8a4af4e2c7f63e7723ad10d2cd3a4 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Sun, 26 Jan 2020 19:33:13 +0100 Subject: [PATCH] Some graphical improvements (first attempt) --- client/src/components/BaseGame.vue | 37 +++++++++++++------------ client/src/components/Board.vue | 2 -- client/src/components/ChallengeList.vue | 23 +++++++-------- client/src/components/Chat.vue | 16 +++++------ client/src/components/ComputerGame.vue | 6 ++-- client/src/components/GameList.vue | 29 +++++++++---------- client/src/views/About.vue | 9 +++--- client/src/views/Analyze.vue | 5 ++-- client/src/views/Game.vue | 30 +++++++++++--------- client/src/views/Rules.vue | 27 +++++++++--------- client/src/views/Variants.vue | 23 +++++++-------- 11 files changed, 105 insertions(+), 102 deletions(-) diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 470488f6..a2d78a06 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -5,24 +5,25 @@ div .card.smallpad.small-modal.text-center label.modal-close(for="modalEog") h3#eogMessage.section {{ endgameMessage }} - .float70 //TODO: use mini-css predefined styles - Board(:vr="vr" :last-move="lastMove" :analyze="analyze" - :user-color="game.mycolor" :orientation="orientation" - :vname="game.vname" @play-move="play") - .button-group - button(@click="() => play()") Play - button(@click="() => undo()") Undo - button(@click="flip") Flip - button(@click="gotoBegin") GotoBegin - button(@click="gotoEnd") GotoEnd - #fenDiv(v-if="showFen && !!vr") - p {{ vr.getFen() }} - #pgnDiv - a#download(href="#") - button(@click="download") {{ st.tr["Download PGN"] }} - .float30 //TODO: should be optional (adjust widths dynamically) - MoveList(v-if="showMoves" - :moves="moves" :cursor="cursor" @goto-move="gotoMove") + .row + .col-sm-12.col-md-9.col-lg-8 + Board(:vr="vr" :last-move="lastMove" :analyze="analyze" + :user-color="game.mycolor" :orientation="orientation" + :vname="game.vname" @play-move="play") + .button-group + button(@click="() => play()") Play + button(@click="() => undo()") Undo + button(@click="flip") Flip + button(@click="gotoBegin") GotoBegin + button(@click="gotoEnd") GotoEnd + #fenDiv(v-if="showFen && !!vr") + p {{ vr.getFen() }} + #pgnDiv + a#download(href="#") + button(@click="download") {{ st.tr["Download PGN"] }} + .col-sm-12.col-md-3.col-lg-4 + MoveList(v-if="showMoves" + :moves="moves" :cursor="cursor" @goto-move="gotoMove")