Skip to content

Commit 8929774

Browse files
Merge pull request #61 from umc-hackaton-4team/dev
fix : MemoryDetailPage 이미지 표시 로직 수정
2 parents 9bfff44 + a9bff4b commit 8929774

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

src/pages/ArchivePage/MemoryDetailPage.tsx

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -118,44 +118,14 @@ export default function MemoryDetailPage() {
118118
return (
119119
<div
120120
key={index}
121-
className="flex h-20 items-center justify-center rounded-lg border border-gray-4 bg-gray-2"
121+
className="flex h-20 items-center justify-center overflow-hidden rounded-lg border border-gray-4 bg-gray-2"
122122
>
123-
{imageUrl ? (
123+
{imageUrl && (
124124
<img
125125
src={imageUrl}
126126
alt={`memory-${index}`}
127-
className="h-full w-full rounded-lg object-cover"
127+
className="h-full w-full object-cover"
128128
/>
129-
) : (
130-
<svg
131-
width="30"
132-
height="30"
133-
viewBox="0 0 30 30"
134-
fill="none"
135-
xmlns="http://www.w3.org/2000/svg"
136-
>
137-
<path
138-
d="M26.25 18.75V23.75C26.25 24.4404 25.9735 25.1027 25.4812 25.5809C24.9889 26.059 24.3185 26.3266 23.6187 26.3266H6.38125C5.68145 26.3266 5.01109 26.059 4.51878 25.5809C4.02646 25.1027 3.75 24.4404 3.75 23.75V18.75"
139-
stroke="#B1B1B1"
140-
strokeWidth="2"
141-
strokeLinecap="round"
142-
strokeLinejoin="round"
143-
/>
144-
<path
145-
d="M21.25 10L15 3.75L8.75 10"
146-
stroke="#B1B1B1"
147-
strokeWidth="2"
148-
strokeLinecap="round"
149-
strokeLinejoin="round"
150-
/>
151-
<path
152-
d="M15 3.75V18.75"
153-
stroke="#B1B1B1"
154-
strokeWidth="2"
155-
strokeLinecap="round"
156-
strokeLinejoin="round"
157-
/>
158-
</svg>
159129
)}
160130
</div>
161131
);

0 commit comments

Comments
 (0)