fix: 노치·홈 막대에 상단 바와 하단 시트가 가리지 않게 safe-area 여백 추가

This commit is contained in:
minaChoi committed 2026-10-08 08:54:13 +09:00
1 parent e8382f450b
commit 46087e64da
4 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@ function TopBar() {
const tab = TABS.find((t) => t.to !== '/' && pathname.startsWith(t.to))
return (
<header className="sticky top-0 z-20 flex h-[54px] items-center justify-between gap-2.5 px-4">
<header className="sticky top-0 z-20 flex h-[calc(54px+env(safe-area-inset-top,0px))] items-center justify-between gap-2.5 px-4 pt-[env(safe-area-inset-top,0px)]">
{tab?.title ? <h1 className="font-jua text-[22px] font-normal">{tab.title}</h1> : <h1 className="font-jua text-[25px] font-normal text-(--orange)">날씨각</h1>}
<button
type="button"
@@ -153,7 +153,7 @@ function Shell() {
<div className="min-h-dvh text-(--ink)">
<SkyBg />
{/* 위·아래 바: 띠는 화면 끝까지, 내용은 가운데 440px 안 */}
<div className="b-topbg fixed inset-x-0 top-0 z-[19] h-[54px] backdrop-blur-md" aria-hidden="true" />
<div className="b-topbg fixed inset-x-0 top-0 z-[19] h-[calc(54px+env(safe-area-inset-top,0px))] backdrop-blur-md" aria-hidden="true" />
<div className="relative mx-auto min-h-dvh max-w-[440px] overflow-x-clip pb-[calc(70px+env(safe-area-inset-bottom,0px))]">
<TopBar />
<main className="relative z-[1]">