Skip to content

Commit d2d1ce8

Browse files
committed
feat: 전역 css 수정
1 parent 3bc2d73 commit d2d1ce8

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<meta charset="UTF-8" />
1313
<meta name="description" content="Human Zipyo" />
14-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
14+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
1515
<link
1616
rel="preload"
1717
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css"

src/index.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ body {
5454
background-color: rgba(255, 255, 255, 0.2);
5555
min-width: 320px;
5656
min-height: 100vh;
57+
min-height: 100dvh; /* 동적 viewport height - 모바일 브라우저 주소창 제외 */
5758
/* overflow: hidden; */
5859
overscroll-behavior: contain;
60+
/* 웹뷰 최적화 */
61+
-webkit-tap-highlight-color: transparent; /* 터치 하이라이트 제거 */
62+
touch-action: pan-y; /* 가로 스크롤 방지 */
63+
/* Safe Area 패딩 - 노치/홈 인디케이터 영역 */
64+
padding-top: env(safe-area-inset-top);
65+
padding-left: env(safe-area-inset-left);
66+
padding-right: env(safe-area-inset-right);
67+
/* bottom은 바텀 네비게이션에서 처리 */
5968
}

src/layout/BottomNavigation/BottomNavigation.Style.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ const NavContainer = styled('nav')({
1010
backgroundColor: theme.colors.sub_black,
1111
justifyContent: 'space-between',
1212
alignItems: 'center',
13-
padding: '20px 33px 30px',
13+
padding: '16px 33px',
14+
paddingBottom: 'max(16px, env(safe-area-inset-bottom))',
1415
boxSizing: 'border-box',
1516
zIndex: '10',
1617
boxShadow: '0px -2px 10px 0px rgba(255, 255, 255, 0.05)',
18+
// 웹뷰 최적화
19+
WebkitBackfaceVisibility: 'hidden',
20+
backfaceVisibility: 'hidden',
21+
transform: 'translateZ(0)', // GPU 가속
22+
willChange: 'transform',
1723
});
1824

1925
const NavItem = styled('div')<{ isActive: boolean }>(({ isActive }) => ({

0 commit comments

Comments
 (0)