X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Flsl.js;h=f7efa52f72236622f57796a2b84a501f4ec95e6e;hb=0753df8cb1a2c3d9bd1a3b36c7d1b71ca529bdd3;hp=35e70b4a1725ba1d77697ef9871d1de7d54ea3a7;hpb=236cfd6f94eba726539fbc0f4001ff8c8c8d56b3;p=lsl.git diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index 35e70b4..f7efa52 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -109,7 +109,7 @@ function edit_list() { autoOpen: true, modal: true, title: 'Edit list', - width: 'max-content', + width: 'min(calc(100% - 2em), 20em)', close: (ev) => { $(ev.target).dialog('destroy'); }, @@ -121,10 +121,6 @@ function edit_list() { delete_list(d); }, }, - { - text: 'Cancel', - click: ()=>{ d.dialog('destroy'); }, - }, { icon: 'ui-icon-disk', text: 'OK', @@ -338,7 +334,7 @@ function edit_list_item(li) { autoOpen: true, modal: true, title: 'Edit item', - width: 'max-content', + width: 'min(calc(100% - 2em), 20em)', close: (ev) => { $(ev.target).dialog('destroy'); }, @@ -350,10 +346,6 @@ function edit_list_item(li) { delete_list_item(d, li); }, }, - { - text: 'Cancel', - click: ()=>{ d.dialog('destroy'); }, - }, { icon: 'ui-icon-disk', text: 'OK',