X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=25da6f1444c1e61ecfe84bad3fb8932bbe9b6c2c;hp=eb9e6e4cdcc56ec412c6099917fe12fe92ca8c99;hb=cf94b843f223b34fd2f3680112a183f6d5cd409c;hpb=a1c48034e89a8d5af915ef3874c84888a281ca37 diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index eb9e6e4c..25da6f14 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -260,12 +260,6 @@ export default { elementArray ); }, - mounted: function() { - // NOTE (TODO?): could also be dependent on page type (game, analyze, variant) - const boardSize = localStorage.getItem("boardSize"); - if (!!boardSize) - document.querySelector(".game").style.width = boardSize + "px"; - }, methods: { mousedown: function(e) { e = e || window.event; @@ -400,13 +394,10 @@ div.board11 padding-bottom: 9.1% .game - //width: #{'min(80vw, 500px)'} - margin: 0 auto + width: 100% + margin: 0 .board cursor: pointer - @media screen and (max-width: 767px) - width: 100% - margin: 0 #choices margin: 0 auto 0 auto