mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix list view item encoding
This commit is contained in:
parent
38591e458e
commit
a1077b3128
1 changed files with 14 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue