Skip to content

experiemntal: safe area #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function RootLayout({
<link rel="icon" type="image/svg+xml" href="/course-mate-icon.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<title>CourseMate</title>
</head>
Expand Down
3 changes: 2 additions & 1 deletion web/components/BottomBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ export default function BottomBar(props: Props) {
const { activeTab } = props;
return (
<div
className="fixed bottom-0 z-30 flex h-12 w-full flex-row items-center justify-around border-gray-200 border-t bg-white"
className="fixed bottom-0 z-30 flex w-full flex-row items-center justify-around border-gray-200 border-t bg-white"
style={{
height: "calc(3rem + env(safe-area-inset-bottom))",
paddingBottom: "env(safe-area-inset-bottom)",
}}
>
Expand Down
Loading