Skip to content

Commit 77eee30

Browse files
committed
매칭 결과 이미지 겹침 해결
1 parent 4123216 commit 77eee30

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

app/routes/matching/test/result/matching-result-content.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,26 @@ export default function MatchingResultContent() {
171171
</div>
172172

173173
<div className="flex w-full flex-1 min-h-0 items-center justify-center">
174-
<div className="relative aspect-[7/6] w-[min(56vw,13.125rem)]">
174+
<div
175+
className={[
176+
"relative aspect-[7/6] w-[min(56vw,13.125rem)]",
177+
"[@media(max-height:700px)]:w-[min(50vw,11.5rem)]",
178+
"[@media(max-height:667px)]:w-[min(46vw,10.5rem)]",
179+
].join(" ")}
180+
>
175181
<img
176182
src={userTypeIconSrc}
177183
alt={data.userType}
178-
className="absolute left-0 top-[-12%] h-[112%] w-full select-none object-contain"
184+
className={[
185+
"absolute left-0 w-full select-none object-contain",
186+
"top-[-12%] h-[112%]",
187+
"[@media(max-height:700px)]:top-0",
188+
"[@media(max-height:700px)]:h-full",
189+
"[@media(max-height:667px)]:w-full",
190+
"[@media(max-height:667px)]:top-0",
191+
"[@media(max-height:667px)]:h-full",
192+
"[@media(max-height:667px)]:translate-y-[3px]",
193+
].join(" ")}
179194
style={{
180195
imageRendering: "auto",
181196
transform: "translateZ(0)",

0 commit comments

Comments
 (0)