Skip to content

Commit

Permalink
fix: Image 속성 변경 등 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wch2208 committed Jun 8, 2024
1 parent dea9cc7 commit 33d8d87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 1 addition & 6 deletions pages/addboard/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ const AddBoardId: React.FC<AddBoardIdProps> = ({ articleData, comments }) => {
<div className="flex flex-col">
{articleData.image && (
<div className="image-container aspect-w-16 aspect-h-9">
<Image
src={`${articleData.image}`}
alt="첨부이미지"
layout="fill"
objectFit="contain"
/>
<Image src={`${articleData.image}`} alt="첨부이미지" fill />
</div>
)}
<div className="mb-40 flex-auto">{articleData.content}</div>
Expand Down
9 changes: 4 additions & 5 deletions pages/boards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ const Boards: React.FC<BoardsProps> = ({ articles: initialArticles }) => {
{article.image ? (
<div className="rounded-lg bg-white w-[72px] h-[72px] flex items-center justify-center border border-cool-gary-200">
<Image
className="object-contain"
src={article.image}
alt="첨부이미지"
width={48}
height={42}
width={72}
height={72}
/>
</div>
) : null}
Expand Down Expand Up @@ -195,8 +194,8 @@ const Boards: React.FC<BoardsProps> = ({ articles: initialArticles }) => {
<Image
src={article.image}
alt={"첨부이미지"}
width={48}
height={42}
width={72}
height={72}
/>
</div>
) : null}
Expand Down

0 comments on commit 33d8d87

Please sign in to comment.