[TrendingNow] Thumbnail size modify

This commit is contained in:
jangheon Pyo
2024-07-08 17:33:15 +09:00
parent e62b50dcef
commit cf27661f29
2 changed files with 10 additions and 3 deletions

View File

@@ -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)}>

View File

@@ -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;
} }
} }