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