Merge pull request #608 from getmaxun/fixed-main-menu

fix: remove menu width adjustment on tab selection
This commit is contained in:
Karishma Shukla
2025-05-26 20:58:29 +05:30
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
return (
<Paper
sx={{
height: 'auto',
height: '100%',
width: '250px',
backgroundColor: theme.palette.background.paper,
paddingTop: '0.5rem',

View File

@@ -171,8 +171,10 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
return (
<Stack direction='row' spacing={0} sx={{ minHeight: '900px' }}>
<Stack sx={{ width: 250, flexShrink: 0 }}>
<MainMenu value={content} handleChangeContent={setContent} />
</Stack>
{DisplayContent()}
</Stack>
);
};
};