xxxxxxxxxx
new frappe.ui.Dialog({
size:"large",
// size: extra-large OR large OR small
xxxxxxxxxx
// in .js at the end of Dialog declaration
dialog.show();
dialog.$wrapper.find('.modal-dialog').css("max-width", "80%");
dialog.$wrapper.find('.modal-dialog').css("width", "80%");