Skip to content

Commit 7f3d3ee

Browse files
committed
Hide background in bottom nav bar
1 parent 75ac16d commit 7f3d3ee

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

web/components/home/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function LoggedOutHome() {
5151
<>
5252
{user === null && <Col className="mb-4 gap-2 lg:hidden">
5353
<SignUpButton
54-
className="mt-4 flex-1 fixed bottom-[55px] w-full left-0 right-0 z-10 mx-auto px-4"
54+
className="mt-4 flex-1 fixed bottom-[calc(55px+env(safe-area-inset-bottom))] w-full left-0 right-0 z-10 mx-auto px-4"
5555
size="xl"
5656
text="Sign up"
5757
/>

web/components/nav/bottom-nav-bar.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function BottomNavBar(props: {
3737
return null
3838
}
3939

40-
return (
40+
return (<Col>
4141
<nav
4242
className={clsx(
4343
"border-ink-200 dark:border-ink-300 text-ink-700 bg-canvas-50 fixed inset-x-0 bottom-0 z-50 flex select-none items-center justify-between border-t-2 text-xs lg:hidden sidebar-nav",
@@ -69,6 +69,15 @@ export function BottomNavBar(props: {
6969
sidebarNavigationOptions={sidebarNavigationOptions}
7070
/>
7171
</nav>
72+
73+
<div
74+
className="fixed inset-x-0 bg-canvas-50"
75+
style={{
76+
bottom: 0,
77+
height: 'env(safe-area-inset-bottom)',
78+
}}
79+
/>
80+
</Col>
7281
)
7382
}
7483

web/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,6 @@ ol > li::marker {
458458

459459
.safe-bottom {
460460
/*bottom: env(safe-area-inset-bottom);*/
461-
bottom: calc(env(safe-area-inset-bottom) + 0px);
461+
bottom: calc(env(safe-area-inset-bottom));
462462
}
463463

0 commit comments

Comments
 (0)