tweak embedded analysis scaling

cli
Thibault Duplessis 2017-10-20 16:42:24 -05:00
parent d90ea89d49
commit 54618cd547
2 changed files with 2 additions and 5 deletions

View File

@ -144,7 +144,7 @@ lichess.startEmbeddedAnalyse = function(opts) {
var boardSize = h - 26;
var gr = 1.618;
if (boardSize > w / gr) boardSize = w / gr;
var groundSize = Math.min(500, Math.max(120, w - boardSize));
var groundSize = Math.min(700, Math.max(120, w - boardSize));
board.style.width = boardSize + 'px';
board.style.height = boardSize + 'px';
ground.style.width = groundSize + 'px';

View File

@ -12,11 +12,8 @@ div.lichess_game {
height: 100%;
flex-flow: row nowrap;
}
div.lichess_game div.lichess_board_wrap {
flex: 1 1 100%;
}
div.lichess_game div.lichess_ground {
flex: 1 1 100%;
flex: 1 1 100%!important;
padding-left: 0;
width: auto;
}