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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let elem;
|
||||||
|
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
if (isLargeStyle) {
|
if (isLargeStyle) {
|
||||||
html += `<${largeTitleTagName} class="listItemBodyText">`;
|
elem = document.createElement(largeTitleTagName);
|
||||||
} else {
|
} else {
|
||||||
html += '<div class="listItemBodyText">';
|
elem = document.createElement('div');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
html += '<div class="secondary listItemBodyText">';
|
elem = document.createElement('div');
|
||||||
|
elem.classList.add('secondary');
|
||||||
}
|
}
|
||||||
html += (textlines[i] || ' ');
|
|
||||||
if (i === 0 && isLargeStyle) {
|
elem.classList.add('listItemBodyText');
|
||||||
html += `</${largeTitleTagName}>`;
|
|
||||||
|
if (textlines[i]) {
|
||||||
|
elem.innerText = textlines[i];
|
||||||
} else {
|
} else {
|
||||||
html += '</div>';
|
elem.innerHTML = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html += elem.outerHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue