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