'16px 24px' is when dividers is set

This commit is contained in:
Manav Rathi
2024-10-04 14:16:32 +05:30
parent ffbe03c283
commit 0a8cfb108a

View File

@@ -58,7 +58,7 @@ export const getComponents = (
padding: "16px",
},
"& .MuiDialogContent-root": {
// MUI default is '20px 24px' / '16px 24px'.
// MUI default is '20px 24px'.
padding: "16px",
// If the contents of the dialog's contents exceed the
// available height, show a scrollbar just for the contents
@@ -71,6 +71,9 @@ export const getComponents = (
padding: "16px",
},
".MuiDialogTitle-root + .MuiDialogContent-root": {
// MUI resets this to 0 when the content doesn't use
// dividers (none of ours do). TODO: That is a better
// default, otherwise we end up with double padding.
paddingTop: "16px",
},
},