diff --git a/src/components/community/shared/PostDetail.tsx b/src/components/community/shared/PostDetail.tsx index db9d5eb..a4df89d 100644 --- a/src/components/community/shared/PostDetail.tsx +++ b/src/components/community/shared/PostDetail.tsx @@ -98,10 +98,12 @@ const PostDetail = ({ postData }: PostDetailType) => { {(postData.images?.length as number) > 0 ? (
{postData.images?.map((image, i) => ( -
+
image { return ( -
1 ? 'w-[260px] h-[180px] ' : 'w-[360px] h-[180px] z-1'}`}> +
1 ? 'w-[260px] h-[180px] relative' : 'w-[360px] h-[180px] z-1 relative'}`}> 1 ? 260 : 360}`} - height={180} + // width={`${count > 1 ? 260 : 360}`} + // height={180} + sizes="(max-width: 640px) 100vw, (max-width: 768px) 80vw, 360px" + fill className="rounded-sm object-cover w-full h-full" alt="image" priority