Skip to content

Commit

Permalink
feat: 스켈레톤 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejin-Yang committed Mar 19, 2024
1 parent 8451c4d commit cd12691
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Product/ProductItem/ProductItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ const ProductItem = ({ product }: ProductItemProps) => {
loading="lazy"
onLoad={() => setIsImageLoading(false)}
/>
{isImageLoading && <Skeleton width={163} height={163} />}
{/*스켈레톤 디자인시스템에서 수정*/}
{isImageLoading && (
<div style={{ position: 'absolute', top: 0, left: 0 }}>
<Skeleton width={163} height={163} />
</div>
)}
<div style={{ height: '8px' }} />
<p className={productName}>{name}</p>
<div style={{ height: '2px' }} />
Expand Down

0 comments on commit cd12691

Please sign in to comment.