mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
7919964805
commit
bb00365b5d
12 changed files with 92 additions and 32 deletions
|
@ -121,7 +121,8 @@
|
|||
dlg.classList.add('actionsheet-fullscreen');
|
||||
}
|
||||
|
||||
if (!layoutManager.tv) {
|
||||
var extraSpacing = !layoutManager.tv;
|
||||
if (extraSpacing) {
|
||||
dlg.classList.add('actionsheet-extraSpacing');
|
||||
}
|
||||
|
||||
|
@ -189,6 +190,12 @@
|
|||
menuItemClass += ' ' + options.menuItemClass;
|
||||
}
|
||||
|
||||
var actionSheetItemTextClass = 'actionSheetItemText';
|
||||
|
||||
if (extraSpacing) {
|
||||
actionSheetItemTextClass += ' actionSheetItemText-extraspacing';
|
||||
}
|
||||
|
||||
for (i = 0, length = options.items.length; i < length; i++) {
|
||||
|
||||
option = options.items[i];
|
||||
|
@ -202,7 +209,7 @@
|
|||
else if (renderIcon && !center) {
|
||||
html += '<i class="actionSheetItemIcon md-icon" style="visibility:hidden;">check</i>';
|
||||
}
|
||||
html += '<div class="actionSheetItemText">' + (option.name || option.textContent || option.innerText) + '</div>';
|
||||
html += '<div class="' + actionSheetItemTextClass + '">' + (option.name || option.textContent || option.innerText) + '</div>';
|
||||
html += '</button>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue