mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix text sub burn in with hls
This commit is contained in:
parent
6dfdbb8075
commit
3c6094599e
1 changed files with 13 additions and 12 deletions
|
@ -2965,19 +2965,20 @@ $.widget( "mobile.page", {
|
|||
element.classList.add("ui-page");
|
||||
element.classList.add("ui-page-theme-" + this.options.theme);
|
||||
|
||||
var content = element.querySelector("div[data-role='content']");
|
||||
var contents = element.querySelectorAll("div[data-role='content']");
|
||||
|
||||
if (content) {
|
||||
var theme = content.getAttribute(attrPrefix + "theme") || undefined;
|
||||
self.options.contentTheme = theme || self.options.contentTheme || (self.options.dialog && self.options.theme) || (self.element.jqmData("role") === "dialog" && self.options.theme);
|
||||
content.classList.add("ui-content");
|
||||
if (self.options.contentTheme) {
|
||||
content.classList.add("ui-body-" + (self.options.contentTheme));
|
||||
}
|
||||
// Add ARIA role
|
||||
content.setAttribute("role", "main");
|
||||
content.classList.add("ui-content");
|
||||
}
|
||||
for (var i = 0, length = contents.length; i < length; i++) {
|
||||
var content = contents[i];
|
||||
var theme = content.getAttribute(attrPrefix + "theme") || undefined;
|
||||
self.options.contentTheme = theme || self.options.contentTheme || (self.options.dialog && self.options.theme) || (self.element.jqmData("role") === "dialog" && self.options.theme);
|
||||
content.classList.add("ui-content");
|
||||
if (self.options.contentTheme) {
|
||||
content.classList.add("ui-body-" + (self.options.contentTheme));
|
||||
}
|
||||
// Add ARIA role
|
||||
content.setAttribute("role", "main");
|
||||
content.classList.add("ui-content");
|
||||
}
|
||||
},
|
||||
|
||||
bindRemove: function( callback ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue