[SHOPTIME-1382] [SHOPTIME-2845] Modify vertical video thumbnail layout in Popular Show
This commit is contained in:
@@ -1942,12 +1942,14 @@ const PlayerPanel = ({
|
||||
useLayoutEffect(() => {
|
||||
const videoContainer = document.querySelector(`.${css.videoContainer}`);
|
||||
|
||||
if (panelInfo.thumbnail) {
|
||||
videoContainer.style.background = `url(${panelInfo.thumbnail}) center center/cover`;
|
||||
if (panelInfo.thumbnail && !videoVerticalVisible) {
|
||||
videoContainer.style.background = `url(${panelInfo.thumbnail}) center center / contain no-repeat`;
|
||||
videoContainer.style.backgroundColor = "black";
|
||||
}
|
||||
|
||||
if (broadcast.type === "videoError" && videoThumbnailUrl) {
|
||||
videoContainer.style.background = `url(${videoThumbnailUrl}) center center/cover`;
|
||||
videoContainer.style.background = `url(${videoThumbnailUrl}) center center / contain no-repeat`;
|
||||
videoContainer.style.backgroundColor = "black";
|
||||
}
|
||||
}, [panelInfo.thumbnail, broadcast]);
|
||||
|
||||
|
||||
@@ -37,7 +37,8 @@
|
||||
|
||||
&.horizontal {
|
||||
> img {
|
||||
.size(@w: 1002px, @h: auto);
|
||||
height: 100%;
|
||||
// .size(@w: 100%, @h: 100%);
|
||||
border-radius: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user