1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

chore: adjust modal heights

This commit is contained in:
Nuno Góis 2025-09-23 14:40:06 +01:00
parent 9c84c422d0
commit 7f1588d546
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765
3 changed files with 4 additions and 2 deletions

View File

@ -248,6 +248,7 @@ export const FeatureStrategyMenu = ({
PaperProps={{ PaperProps={{
sx: { sx: {
borderRadius: '12px', borderRadius: '12px',
height: newStrategyModalEnabled ? '100%' : 'auto',
}, },
}} }}
> >

View File

@ -45,7 +45,7 @@ const StyledContainer = styled(Box)(() => ({
const StyledScrollableContent = styled(Box)(({ theme }) => ({ const StyledScrollableContent = styled(Box)(({ theme }) => ({
width: theme.breakpoints.values.md, width: theme.breakpoints.values.md,
height: theme.spacing(52), height: '100%',
overflowY: 'auto', overflowY: 'auto',
padding: theme.spacing(4), padding: theme.spacing(4),
paddingTop: theme.spacing(2), paddingTop: theme.spacing(2),

View File

@ -19,12 +19,13 @@ import CloseIcon from '@mui/icons-material/Close';
const StyledDialog = styled(Dialog)(({ theme }) => ({ const StyledDialog = styled(Dialog)(({ theme }) => ({
'& .MuiDialog-paper': { '& .MuiDialog-paper': {
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
height: '100%',
}, },
})); }));
const StyledScrollableContent = styled(Box)(({ theme }) => ({ const StyledScrollableContent = styled(Box)(({ theme }) => ({
width: theme.breakpoints.values.md, width: theme.breakpoints.values.md,
minHeight: '318px', height: '100%',
overflowY: 'auto', overflowY: 'auto',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',