X-Git-Url: https://git.auder.net/pieces/Checkered/cr.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=c0a15dff6fe8be0eec3b4bc3f74f2dbc354d3fab;hb=57eb158fe8e37daaae11685df846003cda4aba19;hp=b238758c82e0cba2b89453b234d660228cca3230;hpb=e71161fbfffe53b0f4b174e0467cdd98cc70b7b0;p=vchess.git
diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue
index b238758c..c0a15dff 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="!['none','highlight'].includes(show)")
.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)