diff --git a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css index ecfeba88b1..6a67a732c3 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css +++ b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css @@ -37,6 +37,10 @@ flex-shrink: 0; } +.actionSheetMenuItem-noflex { + display: block; +} + .actionSheetItemText { padding: .8em 0; white-space: nowrap; diff --git a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js index 6874ff7268..93ca3d7dee 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js +++ b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js @@ -170,14 +170,14 @@ html += '
'; - var itemTagName = 'button'; + var menuItemClass = browser.noFlex || browser.firefox ? 'actionSheetMenuItem actionSheetMenuItem-noflex' : 'actionSheetMenuItem'; for (i = 0, length = options.items.length; i < length; i++) { option = options.items[i]; var autoFocus = option.selected ? ' autoFocus' : ''; - html += '<' + itemTagName + autoFocus + ' is="emby-button" type="button" class="actionSheetMenuItem" data-id="' + (option.id || option.value) + '">'; + html += ''; if (option.icon) { html += '' + option.icon + ''; @@ -186,7 +186,7 @@ html += ''; } html += '
' + (option.name || option.textContent || option.innerText) + '
'; - html += ''; + html += ''; } if (options.showCancel) {