mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Fix list view item encoding
This commit is contained in:
parent
38591e458e
commit
a1077b3128
@ -133,21 +133,28 @@ import ServerConnections from '../ServerConnections';
|
||||
continue;
|
||||
}
|
||||
|
||||
let elem;
|
||||
|
||||
if (i === 0) {
|
||||
if (isLargeStyle) {
|
||||
html += `<${largeTitleTagName} class="listItemBodyText">`;
|
||||
elem = document.createElement(largeTitleTagName);
|
||||
} else {
|
||||
html += '<div class="listItemBodyText">';
|
||||
elem = document.createElement('div');
|
||||
}
|
||||
} else {
|
||||
html += '<div class="secondary listItemBodyText">';
|
||||
elem = document.createElement('div');
|
||||
elem.classList.add('secondary');
|
||||
}
|
||||
html += (textlines[i] || ' ');
|
||||
if (i === 0 && isLargeStyle) {
|
||||
html += `</${largeTitleTagName}>`;
|
||||
|
||||
elem.classList.add('listItemBodyText');
|
||||
|
||||
if (textlines[i]) {
|
||||
elem.innerText = textlines[i];
|
||||
} else {
|
||||
html += '</div>';
|
||||
elem.innerHTML = ' ';
|
||||
}
|
||||
|
||||
html += elem.outerHTML;
|
||||
}
|
||||
|
||||
return html;
|
||||
|
Loading…
Reference in New Issue
Block a user