Material-ui - change height, paddingTop of Dialog

I am trying to change the height of a dialog to display all the content inside it.

Also, I want to decrease the padding-top of the modal to give me more space.

How can i do this?

Thank,

+3


source to share


1 answer


So, if you want to set the maximum maximum size in the mdDialog , you can do so by changing the max-width and / or max-height as follows:

md-dialog {
  max-width : 95% !important;  // 95% is a example
  max-height : 95% !important; // You can set any size you want (in %, px, em, etc)
}

      



Here's a working example.

+1


source







All Articles