X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FSettings.vue;h=92b463ef14416d0f8faa6d0507706b498dbdc0b8;hp=6034ab45424e15fcd57fb4097d8242ad419b58bc;hb=41c80bb63b85b2696d3925c10784c3d7bb5d2aa3;hpb=dcd68c4108412f45b8ce119ae80ce8f6e296800b diff --git a/client/src/components/Settings.vue b/client/src/components/Settings.vue index 6034ab45..92b463ef 100644 --- a/client/src/components/Settings.vue +++ b/client/src/components/Settings.vue @@ -81,7 +81,7 @@ export default { return; //no board on page const k = document.getElementById("myRange").value; const movesWidth = (window.innerWidth >= 768 ? 280 : 0); - const minBoardWidth = 240; //TODO: same + const minBoardWidth = 240; //TODO: these 240 and 280 are arbitrary... // Value of 0 is board min size; 100 is window.width [- movesWidth] const boardSize = minBoardWidth + k * (window.innerWidth - (movesWidth+minBoardWidth)) / 100;