Monaca Onsen UI Discord Chat Github Repo

How to change the dimenions of alert?



  • I like to increase the width and height of the alert dialog. The content passed to the default slot does not take any effect on the alert width or height. How to change that?


  • administrators

    You can set the width of the dialog by adding a width CSS style to the .alert-dialog class.

    You can set the height of the dialog title by adding a height style to .alert-dialog-title, or to the dialog content by doing the same to .alert-dialog-content.