Trong Phan
Trong Phan

Reputation: 149

material-ui - change height, paddingTop of Dialog

I am trying to have a dialog's height change to make to display all content inside it.

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

How could I do it?

Thanks,

Upvotes: 3

Views: 6793

Answers (1)

JeanJacques
JeanJacques

Reputation: 1754

So if you want to set a bigger maximum size to your mdDialog, you can do it by changing its max-width and/or max-height like this :

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 is a working example.

Upvotes: 2

Related Questions