easier to just click outside and less clutter
the width calculation is to prevent an unnecessarily narrow dialog
autoOpen: true,
modal: true,
title: 'Edit list',
- width: 'max-content',
+ width: 'min(calc(100% - 2em), 20em)',
close: (ev) => {
$(ev.target).dialog('destroy');
},
delete_list(d);
},
},
- {
- text: 'Cancel',
- click: ()=>{ d.dialog('destroy'); },
- },
{
icon: 'ui-icon-disk',
text: 'OK',
autoOpen: true,
modal: true,
title: 'Edit item',
- width: 'max-content',
+ width: 'min(calc(100% - 2em), 20em)',
close: (ev) => {
$(ev.target).dialog('destroy');
},
delete_list_item(d, li);
},
},
- {
- text: 'Cancel',
- click: ()=>{ d.dialog('destroy'); },
- },
{
icon: 'ui-icon-disk',
text: 'OK',