Merge pull request #608 from getmaxun/fixed-main-menu
fix: remove menu width adjustment on tab selection
This commit is contained in:
@@ -44,7 +44,7 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
|
|||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
sx={{
|
sx={{
|
||||||
height: 'auto',
|
height: '100%',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
backgroundColor: theme.palette.background.paper,
|
backgroundColor: theme.palette.background.paper,
|
||||||
paddingTop: '0.5rem',
|
paddingTop: '0.5rem',
|
||||||
|
|||||||
@@ -171,7 +171,9 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack direction='row' spacing={0} sx={{ minHeight: '900px' }}>
|
<Stack direction='row' spacing={0} sx={{ minHeight: '900px' }}>
|
||||||
|
<Stack sx={{ width: 250, flexShrink: 0 }}>
|
||||||
<MainMenu value={content} handleChangeContent={setContent} />
|
<MainMenu value={content} handleChangeContent={setContent} />
|
||||||
|
</Stack>
|
||||||
{DisplayContent()}
|
{DisplayContent()}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user