fix: video player stretch
This commit is contained in:
parent
32d3aeb1cf
commit
254c40ca5a
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue