X-Git-Url: https://git.auder.net/images/diag_mark.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=cc8e24c6210dc080cb520696c319c38a0fb16be0;hb=f9c36b2da005b596ad656f4b6cc4e09ef3c656f1;hp=b238758c82e0cba2b89453b234d660228cca3230;hpb=e71161fbfffe53b0f4b174e0467cdd98cc70b7b0;p=vchess.git
diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue
index b238758c..cc8e24c6 100644
--- a/client/src/components/MoveList.vue
+++ b/client/src/components/MoveList.vue
@@ -1,9 +1,27 @@
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 }}
- .moves-list
+ 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'"
@@ -17,16 +35,50 @@ div
@click="() => gotoMove(moveIdx+1)"
)
| {{ notation(moves[moveIdx+1]) }}
- // Else: just add an empty cell
- //.td(v-else)