Composer: display uploaded video preview

This commit is contained in:
Alex Gleason 2021-05-17 16:43:55 -05:00
parent 3bae6e25e1
commit 80c18f0fed
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 19 additions and 1 deletions

View file

@ -277,15 +277,33 @@
}
&.active { opacity: 1; }
}
&-preview {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
video {
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
.compose-form__upload-thumbnail {
border-radius: 4px;
background-position: center;
background-repeat: no-repeat;
height: 140px;
height: 160px;
width: 100%;
overflow: hidden;
position: relative;
&.video {
background-image: url('../images/video-placeholder.png');