[TrendingNow] Thumbnail size modify
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
|||||||
} from "../../../../actions/playActions";
|
} from "../../../../actions/playActions";
|
||||||
import { $L } from "../../../../utils/helperMethods";
|
import { $L } from "../../../../utils/helperMethods";
|
||||||
import css from "./PopularVideoCard.module.less";
|
import css from "./PopularVideoCard.module.less";
|
||||||
|
import CustomImage from "../../../../components/CustomImage/CustomImage";
|
||||||
|
|
||||||
const SpottableComponent = Spottable("div");
|
const SpottableComponent = Spottable("div");
|
||||||
|
|
||||||
@@ -126,7 +127,12 @@ export default function PopularVideoCard({
|
|||||||
>
|
>
|
||||||
<figure className={css[thumbnailType]}>
|
<figure className={css[thumbnailType]}>
|
||||||
{thumbnailImgPath && (
|
{thumbnailImgPath && (
|
||||||
<img src={thumbnailImgPath} alt={showNm} loading="lazy" />
|
<CustomImage
|
||||||
|
delay={0}
|
||||||
|
src={thumbnailImgPath}
|
||||||
|
animationSpeed="fast"
|
||||||
|
alt={showNm}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</figure>
|
</figure>
|
||||||
<div className={classNames(css.videoDesc, isFocused && css.descFocused)}>
|
<div className={classNames(css.videoDesc, isFocused && css.descFocused)}>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
> figure:nth-child(1) {
|
> figure:nth-child(1) {
|
||||||
|
.size(@w: 1002px, @h: 564px);
|
||||||
.position(@position: absolute, @top: 0, @right: 0, @left: 0);
|
.position(@position: absolute, @top: 0, @right: 0, @left: 0);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
.flex();
|
.flex();
|
||||||
@@ -36,7 +37,7 @@
|
|||||||
|
|
||||||
&.horizontal {
|
&.horizontal {
|
||||||
> img {
|
> img {
|
||||||
.size(@w: 1002px, @h: 564px);
|
.size(@w: 1002px, @h: auto);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -45,7 +46,7 @@
|
|||||||
background-color: @COLOR_BLACK;
|
background-color: @COLOR_BLACK;
|
||||||
|
|
||||||
> img {
|
> img {
|
||||||
.size(@w: 326px, @h: 564px);
|
.size(@w: auto, @h: 564px);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user