1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Another pass of image sizes improvements

This commit is contained in:
MrTimscampi 2020-03-09 20:46:56 +01:00
parent 457d37450e
commit f24c908412
4 changed files with 20 additions and 5 deletions

View file

@ -334,18 +334,24 @@ define(["playbackManager", "dom", "inputManager", "datetime", "itemHelper", "med
if (item) {
var imgUrl = seriesImageUrl(item, {
maxWidth: dom.getScreenWidth() * 0.20,
type: "Primary"
}) || seriesImageUrl(item, {
maxWidth: dom.getScreenWidth() * 0.20,
type: "Thumb"
}) || imageUrl(item, {
maxWidth: dom.getScreenWidth() * 0.20,
type: "Primary"
});
if (!imgUrl && secondaryItem && (imgUrl = seriesImageUrl(secondaryItem, {
maxWidth: dom.getScreenWidth() * 0.20,
type: "Primary"
}) || seriesImageUrl(secondaryItem, {
maxWidth: dom.getScreenWidth() * 0.20,
type: "Thumb"
}) || imageUrl(secondaryItem, {
maxWidth: dom.getScreenWidth() * 0.20,
type: "Primary"
})), imgUrl) {
return void (osdPoster.innerHTML = '<img src="' + imgUrl + '" />');