fix: video player stretch

This commit is contained in:
Tomáš Mládek 2022-12-08 16:55:01 +01:00
parent 32d3aeb1cf
commit 254c40ca5a

View file

@ -33,15 +33,15 @@
left: 0; left: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
display: flex;
justify-content: center;
@media (orientation: portrait) {
flex-direction: column;
}
background: rgba(0, 0, 0, 0.88); background: rgba(0, 0, 0, 0.88);
video { video {
width: 90%; margin: 0 2rem;
max-height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
} }
transition: opacity 0.5s; transition: opacity 0.5s;