Skip to content

Commit

Permalink
style: 💄 Added safe-area padding to user drawer for iOS PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
Genio2003 committed Jan 29, 2024
1 parent 4a03cdc commit 5642e99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/router/RouterMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import { RouterButton } from "./RouterButton";

const useStyles = makeStyles({
drawer: {
...shorthands.borderRadius(tokens.borderRadiusMedium)
...shorthands.borderRadius(tokens.borderRadiusMedium),

paddingTop: "env(safe-area-inset-top)",
paddingBottom: "env(safe-area-inset-bottom)",
paddingLeft: "env(safe-area-inset-left)",
paddingRight: "env(safe-area-inset-right)"
},
drawerBody: {
display: "flex",
Expand Down

0 comments on commit 5642e99

Please sign in to comment.