mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Skip adding background color for non-blurhashable items
This commit is contained in:
parent
5e1d4edd87
commit
e5198a6328
1 changed files with 3 additions and 1 deletions
|
@ -87,7 +87,9 @@ import 'css!./style';
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
if (elem.tagName !== 'IMG') {
|
if (elem.tagName !== 'IMG') {
|
||||||
elem.style.backgroundImage = "url('" + url + "')";
|
elem.style.backgroundImage = "url('" + url + "')";
|
||||||
elem.style.backgroundColor = '#fff';
|
if (!elem.classList.contains('non-blurhashable')) {
|
||||||
|
elem.style.backgroundColor = '#fff';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
elem.setAttribute('src', url);
|
elem.setAttribute('src', url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue