Skip to content

Commit 8eda77f

Browse files
authored
experiemntal: safe area (#690)
1 parent 3dcf940 commit 8eda77f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

web/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function RootLayout({
3535
<link rel="icon" type="image/svg+xml" href="/course-mate-icon.svg" />
3636
<meta
3737
name="viewport"
38-
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
38+
content="width=device-width, initial-scale=1, viewport-fit=cover"
3939
/>
4040
<title>CourseMate</title>
4141
</head>

web/components/BottomBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ export default function BottomBar(props: Props) {
3737
const { activeTab } = props;
3838
return (
3939
<div
40-
className="fixed bottom-0 z-30 flex h-12 w-full flex-row items-center justify-around border-gray-200 border-t bg-white"
40+
className="fixed bottom-0 z-30 flex w-full flex-row items-center justify-around border-gray-200 border-t bg-white"
4141
style={{
42+
height: "calc(3rem + env(safe-area-inset-bottom))",
4243
paddingBottom: "env(safe-area-inset-bottom)",
4344
}}
4445
>

0 commit comments

Comments
 (0)