fix: 안드로이드 토스에서 탭바 아래가 약 56px 비어 보이던 것 — 토스 웹뷰는 하단 내비게이션 바 위에서 끝나는데도 safe-area-inset-bottom 을 알려 줘 여백이 두 번 들어갔음. 하단 안전 영역을 --sab 변수 하나로 모으고(탭바·페이지 아래 여백·문의 버튼·창·게임·포스트 오류 문구), 안드로이드 토스일 때만 0 으로 둠. 웹·앱·아이폰 토스는 그대로(아이폰 토스는 확인하지 못함). 갤럭시 Z 플립 5 에서 확인
This commit is contained in:
1 parent
2b1fa58f56
commit
8ea9f8f04b
6 files changed
+12
-7
No files matched your search
@@ -114,7 +114,7 @@ function FloatButton() {
|
||||
type="button"
|
||||
onClick={down ? toTop : () => open({ type: 'contact' })}
|
||||
aria-label={down ? '맨 위로' : '문의하기'}
|
||||
className="fixed right-[max(12px,calc((100%-440px)/2+12px))] bottom-[calc(80px+env(safe-area-inset-bottom,0px))] z-20 size-14 cursor-pointer rounded-full drop-shadow-[0_6px_10px_rgb(40_48_74/0.22)]"
|
||||
className="fixed right-[max(12px,calc((100%-440px)/2+12px))] bottom-[calc(80px+var(--sab))] z-20 size-14 cursor-pointer rounded-full drop-shadow-[0_6px_10px_rgb(40_48_74/0.22)]"
|
||||
>
|
||||
<Ic name={down ? 'top' : 'contact'} className="size-full" />
|
||||
</button>
|
||||
@@ -306,13 +306,13 @@ function Shell() {
|
||||
</div>
|
||||
)}
|
||||
<div className="fixed inset-x-0 top-0 z-[19] h-[env(safe-area-inset-top,0px)] transition-colors duration-1400" style={{ backgroundColor: NOTCH_BG[kind] }} aria-hidden="true" />
|
||||
<div className="relative mx-auto min-h-dvh max-w-[440px] overflow-x-clip pb-[calc(104px+env(safe-area-inset-bottom,0px))]">
|
||||
<div className="relative mx-auto min-h-dvh max-w-[440px] overflow-x-clip pb-[calc(104px+var(--sab))]">
|
||||
<TopBar />
|
||||
<main className="relative z-[1]">
|
||||
<Outlet />
|
||||
</main>
|
||||
<FloatButton />
|
||||
<nav aria-label="주요 메뉴" className="b-tabbar fixed inset-x-0 bottom-0 z-30 grid grid-cols-5 border-t px-[max(4px,calc((100%-432px)/2))] pt-[7px] pb-[calc(8px+env(safe-area-inset-bottom,0px))] backdrop-blur-[10px]">
|
||||
<nav aria-label="주요 메뉴" className="b-tabbar fixed inset-x-0 bottom-0 z-30 grid grid-cols-5 border-t px-[max(4px,calc((100%-432px)/2))] pt-[7px] pb-[calc(8px+var(--sab))] backdrop-blur-[10px]">
|
||||
{TABS.map((t) =>
|
||||
t.key === 'today' ? (
|
||||
// 메인 탭: 막대 위로 솟은 큰 주황 동그라미
|
||||
|
||||
Reference in new issue
Block a user