Fix video playback controls flicker

This commit is contained in:
Josh Perez 2022-07-07 17:07:00 -04:00 committed by GitHub
parent 4f4df5bb32
commit fcf75fdd1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -94,6 +94,14 @@
}
}
&--video {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
height: auto;
max-height: 100%;
max-width: 100%;

View File

@ -471,7 +471,7 @@ export function Lightbox({
content = (
<video
className="Lightbox__object"
className="Lightbox__object Lightbox__object--video"
controls={!shouldLoop}
key={objectURL}
loop={shouldLoop}