Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/page/post-detail-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,16 @@ const PostDetailPage = () => {
</p>

{/* 🔥 상세 정보 */}
<div className="flex items-center flex-col px-[2.4rem] justify-center">
<div className="flex w-full items-center flex-col px-[2.4rem] justify-center">
<DetailInfo
playDate={data.playDate}
playCount={data.playCount}
location={data.playGround}
writerNickname={data.writer?.nickname}
/>
<p className="flex typo-body1 py-[2rem] border-b">{data.description}</p>
<p className="w-full max-w-[32.7rem] typo-body1 py-[2rem] border-b">
{data.description}
</p>
</div>

<div className="px-[2.4rem] py-[2rem] border-b">
Expand Down Expand Up @@ -198,7 +200,7 @@ const PostDetailPage = () => {
</div>
)}

<div className="flex w-full gap-[1.6rem]">
<div className="flex w-full gap-[1.6rem] items-center">
<Input
inputSize="sm"
placeholder="댓글을 입력해주세요"
Expand Down
8 changes: 6 additions & 2 deletions src/widgets/main/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ export function Card({
onClick={onClick}
className="flex flex-low gap-[1.6rem] w-[32.7rem] h-[14.8rem] pb-[2rem] border-b border-gray-100"
>
<div className="w-[10.2rem] h-[12.8rem] shrink-0 border rounded-[8px]">
<img src={image} />
<div className="w-[10.2rem] h-[12.8rem] shrink-0 overflow-hidden border rounded-[8px]">
<img
src={image}
alt={title}
className="h-full w-full object-cover"
/>
</div>
<div className="flex flex-col gap-[1.2rem]">
<CardTitle title={title} />
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/postDetail/detail-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function DetailInfo({
writerNickname,
}: DetailInfoProps) {
return (
<div className="flex w-[32.7rem] gap-[2rem] flex-col border-b py-[2rem]">
<div className="flex w-full max-w-[32.7rem] gap-[2rem] flex-col border-b py-[2rem]">
<div className="flex gap-[0.8rem]">
<img className="w-[4.8rem] h-[4.8rem] rounded-full border" />
<div className="flex flex-col">
Expand Down
Loading