FIX: Set the video background to be black (#25744)

If you upload a portrait video or just a video that doesn't fit in the
normal video dimensions we want it to have a black background instead of
trying to render parts of the placeholder image as the video background.

This change removes the placeholder image for the video background when
the play button is clicked and replaces it with an all black background.
This commit is contained in:
Blake Erickson 2024-02-19 12:46:45 -07:00
parent 0003599754
commit cda09483de
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ export default {
wrapper.remove();
video.style.display = "";
parentDiv.classList.remove("video-placeholder-container");
parentDiv.style.backgroundImage = "none";
});
}

View File

@ -927,6 +927,7 @@ aside.onebox.mixcloud-preview {
position: relative;
padding: 0 0 56.25% 0;
width: 100%;
background-color: black;
video {
position: absolute;