mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:25:54 +08:00
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:
parent
0003599754
commit
cda09483de
|
@ -67,6 +67,7 @@ export default {
|
|||
wrapper.remove();
|
||||
video.style.display = "";
|
||||
parentDiv.classList.remove("video-placeholder-container");
|
||||
parentDiv.style.backgroundImage = "none";
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -927,6 +927,7 @@ aside.onebox.mixcloud-preview {
|
|||
position: relative;
|
||||
padding: 0 0 56.25% 0;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
|
||||
video {
|
||||
position: absolute;
|
||||
|
|
Loading…
Reference in New Issue
Block a user