mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #1678 from jellyfin/banner
Fix banner height and use primary image as fallback
This commit is contained in:
commit
34d0b67f0e
@ -646,7 +646,7 @@
|
|||||||
.layout-desktop .detailRibbon,
|
.layout-desktop .detailRibbon,
|
||||||
.layout-tv .detailRibbon {
|
.layout-tv .detailRibbon {
|
||||||
margin-top: -7.2em;
|
margin-top: -7.2em;
|
||||||
height: 7.18em;
|
height: 7.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-desktop .noBackdrop .detailRibbon,
|
.layout-desktop .noBackdrop .detailRibbon,
|
||||||
|
@ -523,6 +523,14 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
|
|||||||
});
|
});
|
||||||
imageLoader.lazyImage(itemBackdropElement, imgUrl);
|
imageLoader.lazyImage(itemBackdropElement, imgUrl);
|
||||||
hasbackdrop = true;
|
hasbackdrop = true;
|
||||||
|
} else if (item.ImageTags && item.ImageTags.Primary) {
|
||||||
|
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
||||||
|
type: 'Primary',
|
||||||
|
maxWidth: dom.getScreenWidth(),
|
||||||
|
tag: item.ImageTags.Primary
|
||||||
|
});
|
||||||
|
imageLoader.lazyImage(itemBackdropElement, imgUrl);
|
||||||
|
hasbackdrop = true;
|
||||||
} else {
|
} else {
|
||||||
itemBackdropElement.style.backgroundImage = '';
|
itemBackdropElement.style.backgroundImage = '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user