Skip to content

Commit

Permalink
fix: 커뮤니티 글 이미지 scale down
Browse files Browse the repository at this point in the history
  • Loading branch information
banhogu committed May 28, 2024
1 parent 16a88f0 commit 347a335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/community/shared/PostDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const PostDetail = ({ postData }: PostDetailType) => {
<div className="flex flex-col gap-2 mt-5">
{postData.images?.map((image, i) => (
<div className="w-[360px] h-[280px]" key={i}>
<img src={image} className="object-cover w-full h-full " />
<img src={image} className="object-scale-down w-full h-full " />
</div>
))}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/community/shared/PostItemImageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
const PostItemImageItem = ({ image, count }: { image: string; count: number }) => {
return (
<div className={`${count > 1 ? 'w-[260px] h-[180px] ' : 'w-[360px] h-[180px] z-1'}`}>
<img src={image} alt="" className="rounded-sm object-cover w-full h-full" />
<img src={image} alt="" className="rounded-sm object-scale-down w-full h-full" />
</div>
);
};
Expand Down

0 comments on commit 347a335

Please sign in to comment.