Skip to content

Commit

Permalink
fix menu close button position - right side on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Nov 22, 2024
1 parent 302e661 commit e639737
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/PageLayout/MenuMain/MenuMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ export const MenuMain: FC = () => {
}}
>
<Box flexGrow={1}>
<CloseButton size={iconSize} onClick={toggleMenu} sx={{position: 'absolute', top: 24, left: 24}} />
<CloseButton
size={iconSize}
onClick={toggleMenu}
sx={{position: 'absolute', top: 24, left: {xs: undefined, md: 24}, right: {xs: 24, md: undefined}}}
/>
{menuItemsIsLoading && (
<Box sx={{position: 'absolute', top: '50%', left: 0, right: 0, color: 'white'}}>
<Loading />
Expand Down

0 comments on commit e639737

Please sign in to comment.