Skip to content

Commit

Permalink
πŸ›  fix : λ„€μ΄ν‹°λΈŒμ—μ„œ λ ˆμ΄μ•„μ›ƒ μ΄μƒν•˜κ²Œ λ³΄μ΄λŠ” ν˜„μƒ
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Apr 13, 2024
1 parent 3922f52 commit 16a81cd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/(Main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { StrictPropsWithChildren } from '@/types';

export default function MainLayout({ children }: StrictPropsWithChildren) {
return (
<div className="px-20">
<div className="flex h-full flex-col px-20">
<MainHeader />
{children}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/(Main)/pick/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export default function Page() {
</div>
<div className="relative flex flex-1">
{(isLottie || !isRendered) && (
<div className="absolute inset-0 z-10 flex justify-center bg-black">
<div className="absolute inset-0 z-10 flex w-full justify-center bg-black">
<Lottie animationData={lottiePick} play />
</div>
)}
<div className="absolute inset-0 flex justify-center bg-black">
<div className="absolute inset-0 flex w-full justify-center bg-black">
<PoseImage src={image} onLoad={() => setIsRendered(true)} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Feed/Photo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Photo({ imageKey, source, id, isMarked }: Photo) {
const router = useRouter();

return (
<div className="relative mb-16 inline-block h-fit w-full rounded-8">
<div className="relative mb-16 inline-block w-full rounded-8">
{imageKey && (
<>
<Image
Expand Down
29 changes: 21 additions & 8 deletions src/components/Modal/PoseImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,42 @@ export default function PoseImage({ src, responsive = false, onLoad }: DetailedI
>
<div className="fixed inset-x-0 inset-y-0 bg-dimmed opacity-70" />
<div className="h-screen w-full">
<Image src={src} alt="fullImage" fill className="object-contain" />
<Image
src={src}
alt="fullImage"
fill
style={{
objectFit: 'contain',
}}
/>
</div>
</div>
)}
{responsive ? (
<Image
src={src}
alt="상세보기"
layout="responsive"
style={{
objectFit: 'contain',
width: '100%',
height: 'auto',
}}
priority
alt="상세보기"
width={400}
height={0}
onLoad={onLoad}
className="cursor-pointer object-contain"
onClick={() => setIsModalShow(true)}
/>
) : (
<Image
src={src}
fill
className="cursor-pointer object-contain"
placeholder="blur"
blurDataURL={src}
width={400}
height={0}
style={{
objectFit: 'contain',
width: '100%',
height: '100%',
}}
alt="ν¬μ¦ˆν”½"
onLoad={onLoad}
onClick={() => setIsModalShow(true)}
Expand Down

0 comments on commit 16a81cd

Please sign in to comment.