Fix slide ratio in preview mode
parent
140964478e
commit
3bd5f01e53
|
@ -98,8 +98,9 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.preview .cp {
|
.preview {
|
||||||
flex: 1;
|
.cp {
|
||||||
|
width: 50vw;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
div#modal:not(.shown) {
|
div#modal:not(.shown) {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -115,14 +116,20 @@ body {
|
||||||
.slide-frame {
|
.slide-frame {
|
||||||
width: 50vw;
|
width: 50vw;
|
||||||
height: 28.125vw; // height:width ratio = 9/16 = .5625
|
height: 28.125vw; // height:width ratio = 9/16 = .5625
|
||||||
max-height: 100vh;
|
max-height: ~"calc(100vh - 96px)";
|
||||||
max-width: 177.78vh; // 16/9 = 1.778
|
max-width: ~"calc(16 / 9 * (100vh - 96px))";
|
||||||
|
//max-height: 100vh;
|
||||||
|
//max-width: 177.78vh; // 16/9 = 1.778
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#button_exit {
|
#button_exit {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.CodeMirror {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.cp {
|
.cp {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue