Skip to content

Commit 3dcf940

Browse files
authored
set safe area (#689)
1 parent f3cafcd commit 3dcf940

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/components/BottomBar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ function BottomBarCell({
3636
export default function BottomBar(props: Props) {
3737
const { activeTab } = props;
3838
return (
39-
<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">
39+
<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"
41+
style={{
42+
paddingBottom: "env(safe-area-inset-bottom)",
43+
}}
44+
>
4045
<BottomBarCell
4146
href="/home"
4247
iconComponent={

0 commit comments

Comments
 (0)