keep aspect ratio

This commit is contained in:
Bernt Christian Egeland 2021-08-22 15:04:48 +02:00
parent 85982e1573
commit c122cea479

View File

@ -29,3 +29,16 @@
.jsmpeg canvas { .jsmpeg canvas {
position: static !important; position: static !important;
} }
/*
Event.js
Maintain aspect ratio and scale down the video container
Could not find a proper tailwind css.
*/
.outer-max-width {
max-width: 60%;
}
.aspect-ratio-box {
padding-top: calc(9 / 16 * 100%);
padding-bottom: 20%;
}