X-Git-Url: https://git.auder.net/css/rpsls.css?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=2fc7bacbf1f8618ecb500cb9190ba32ee45b12b7;hb=bc0b9205e41c5db0552e4ccf060b945342e36ed0;hp=a9fa9834b042e6e6d37244c6fff6aac6c6a29b18;hpb=e6bcc1d87c65264608d1134a24d758e0f2a687c1;p=vchess.git diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index a9fa9834..2fc7bacb 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -22,20 +22,23 @@ div @click="$emit('showrules')" ) | {{ st.tr["Rules"] }} - button.tooltip( + button( + :class="btnTooltipClass()" onClick="window.doClick('modalAdjust')" :aria-label="st.tr['Resize board']" ) img.inline(src="/images/icons/resize.svg") - button.tooltip( + button#analyzeBtn( v-if="canAnalyze" + :class="btnTooltipClass()" @click="$emit('analyze')" :aria-label="st.tr['Analyse']" ) img.inline(src="/images/icons/analyse.svg") #downloadDiv(v-if="canDownload") a#download(href="#") - button.tooltip( + button( + :class="btnTooltipClass()" @click="$emit('download')" :aria-label="st.tr['Download'] + ' PGN'" ) @@ -43,20 +46,20 @@ div #scoreInfo(v-if="score!='*'") span.score {{ score }} span.score-msg {{ st.tr[message] }} - .moves-list(v-if="!['none','highlight'].includes(show)") + .moves-list .tr(v-for="moveIdx in evenNumbers") - .td {{ firstNum + moveIdx / 2 + 1 }} - .td(v-if="moveIdx < moves.length-1 || show == 'all'" + .td {{ firstNum + moveIdx / 2 }} + .td( :class="{'highlight-lm': cursor == moveIdx}" @click="() => gotoMove(moveIdx)" ) - | {{ notation(moves[moveIdx]) }} + | {{ notation(moveIdx) }} .td( v-if="moveIdx < moves.length-1" - :class="{'highlight-lm': highlightBlackmove(moveIdx+1)}" + :class="{'highlight-lm': cursor == moveIdx+1}" @click="() => gotoMove(moveIdx+1)" ) - | {{ notation(moves[moveIdx+1]) }} + | {{ notation(moveIdx + 1) }}