X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=cc8e24c6210dc080cb520696c319c38a0fb16be0;hb=757e9fe9f2467d43980dd3ba5316cf029a0b7d10;hp=1209dd99c6a57a2dad0e6e4da536fe3493634ec7;hpb=d36ca1989daec86e5ad4b2e65c8a045af171fafd;p=vchess.git
diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue
index 1209dd99..cc8e24c6 100644
--- a/client/src/components/MoveList.vue
+++ b/client/src/components/MoveList.vue
@@ -1,63 +1,164 @@
div
+ input#modalAdjust.modal(type="checkbox")
+ div#adjuster(
+ role="dialog"
+ data-checkbox="modalAdjust"
+ )
+ .card.text-center
+ label.modal-close(for="modalAdjust")
+ label(for="boardSize") {{ st.tr["Board size"] }}
+ input#boardSize.slider(
+ type="range"
+ min="0"
+ max="100"
+ value="50"
+ @input="adjustBoard()"
+ )
+ div#boardSizeBtnContainer
+ button#boardSizeBtn(onClick="window.doClick('modalAdjust')")
+ | {{ st.tr["Set board size"] }}
#scoreInfo(v-if="score!='*'")
p {{ score }}
- p {{ message }}
- table.moves-list
- tbody
- tr(v-for="moveIdx in evenNumbers")
- td {{ firstNum + moveIdx / 2 + 1 }}
- td(:class="{'highlight-lm': cursor == moveIdx}"
- @click="() => gotoMove(moveIdx)")
- | {{ moves[moveIdx].notation }}
- td(v-if="moveIdx < moves.length-1"
- :class="{'highlight-lm': cursor == moveIdx+1}"
- @click="() => gotoMove(moveIdx+1)")
- | {{ moves[moveIdx+1].notation }}
- // Else: just add an empty cell
- td(v-else)
+ p {{ st.tr[message] }}
+ .moves-list(v-if="show != 'none'")
+ .tr(v-for="moveIdx in evenNumbers")
+ .td {{ firstNum + moveIdx / 2 + 1 }}
+ .td(v-if="moveIdx < moves.length-1 || show == 'all'"
+ :class="{'highlight-lm': cursor == moveIdx}"
+ @click="() => gotoMove(moveIdx)"
+ )
+ | {{ notation(moves[moveIdx]) }}
+ .td(
+ v-if="moveIdx < moves.length-1"
+ :class="{'highlight-lm': cursor == moveIdx+1}"
+ @click="() => gotoMove(moveIdx+1)"
+ )
+ | {{ notation(moves[moveIdx+1]) }}