Skip to content

Commit

Permalink
Handle nav bar safe area top inset
Browse files Browse the repository at this point in the history
The default nav bar icons were possibly slightly hidden under the top bar in case there was a "safe area top inset"
  • Loading branch information
schroda committed Jan 9, 2025
1 parent a423d11 commit e4e38e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/navigation-bar/components/DesktopSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
>
<Box
sx={{
pt: 'env(safe-area-inset-top)',
pl: 'env(safe-area-inset-left)',
minWidth: isCollapsed ? MIN_WIDTH_COLLAPSED : MIN_WIDTH_EXTENDED,
maxWidth: isCollapsed ? MAX_WIDTH_COLLAPSED : MAX_WIDTH_EXTENDED,
Expand Down

0 comments on commit e4e38e7

Please sign in to comment.