Skip to content

Commit

Permalink
[Dialog] fixed broken dialog when using maxWidth="xs" and custom brea…
Browse files Browse the repository at this point in the history
…kpoint unit (#37237)
  • Loading branch information
jguddas committed May 12, 2023
1 parent a8ba538 commit e0f6979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const DialogPaper = styled(Paper, {
maxWidth:
theme.breakpoints.unit === 'px'
? Math.max(theme.breakpoints.values.xs, 444)
: `${theme.breakpoints.values.xs}${theme.breakpoints.unit}`,
: `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
[`&.${dialogClasses.paperScrollBody}`]: {
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
maxWidth: 'calc(100% - 64px)',
Expand Down

0 comments on commit e0f6979

Please sign in to comment.