tweak embedded analysis scaling
parent
d90ea89d49
commit
54618cd547
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue