Skip to content

Commit 50f523c

Browse files
committed
fix: 레이아웃 수정
1 parent 156b1bf commit 50f523c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/app/(protected)/immersion/[taskId]/ImmersionPageClient.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default function ImmersionPageClient({ initialTask }: Props) {
128128
};
129129

130130
return (
131-
<div className="flex h-full flex-col bg-background-primary">
131+
<div className="flex h-[calc(100vh-80px)] flex-col bg-background-primary">
132132
{/* 상단 헤더 영역 */}
133133
<div
134134
className="fixed top-[44px] left-0 w-full z-50 flex items-center justify-between px-5 py-[14px]"
@@ -159,7 +159,7 @@ export default function ImmersionPageClient({ initialTask }: Props) {
159159
</div>
160160

161161
{/* 스크롤 영역이 될 중간 부분 */}
162-
<div className="flex-1 overflow-y-auto pt-[65px] mb-[117px]">
162+
<div className="flex-1 overflow-y-auto pt-[65px] pb-[100px]">
163163
<div className="relative z-10">
164164
<div className="relative">
165165
<div className="absolute inset-0 -top-5 h-[500px]">
@@ -264,16 +264,18 @@ export default function ImmersionPageClient({ initialTask }: Props) {
264264
)}
265265
</div>
266266

267-
{/* CTA 버튼 */}
268-
<div className="fixed bottom-0 left-0 right-0 z-40 mb-[37px] bg-background-primary px-5 py-3">
269-
<Button
270-
variant={isUrgent(initialTask) ? "hologram" : "primary"}
271-
className={`relative w-full ${isUrgent(initialTask) ? "l2 h-[56px] rounded-[16px] px-[18.5px] text-center text-gray-inverse" : ""}`}
272-
onClick={handleComplete}
273-
>
274-
다했어요!
275-
</Button>
276-
</div>
267+
{/* CTA 버튼 */}
268+
{!isFocused && (
269+
<div className="fixed bottom-0 left-0 right-0 z-40 bg-background-primary px-5 py-3 mb-[36px]">
270+
<Button
271+
variant={isUrgent(initialTask) ? "hologram" : "primary"}
272+
className={`relative w-full ${isUrgent(initialTask) ? "l2 h-[56px] rounded-[16px] px-[18.5px] text-center text-gray-inverse" : ""}`}
273+
onClick={handleComplete}
274+
>
275+
다했어요!
276+
</Button>
277+
</div>
278+
)}
277279

278280
{/* 할일 완료 바텀시트 */}
279281
{showBottomSheet && (

0 commit comments

Comments
 (0)