Merge pull request #441 from Nickbert7/patch-1

Improve image quality on detail page
This commit is contained in:
Joshua M. Boniface 2019-09-03 13:46:15 -04:00 committed by GitHub
commit a4dabc1644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
function renderLogo(page, item, apiClient) { function renderLogo(page, item, apiClient) {
var url = logoImageUrl(item, apiClient, { var url = logoImageUrl(item, apiClient, {
maxWidth: 300 maxWidth: 400
}), }),
detailLogo = page.querySelector(".detailLogo"); detailLogo = page.querySelector(".detailLogo");
url ? (detailLogo.classList.remove("hide"), detailLogo.classList.add("lazy"), detailLogo.setAttribute("data-src", url), imageLoader.lazyImage(detailLogo)) : detailLogo.classList.add("hide") url ? (detailLogo.classList.remove("hide"), detailLogo.classList.add("lazy"), detailLogo.setAttribute("data-src", url), imageLoader.lazyImage(detailLogo)) : detailLogo.classList.add("hide")
@ -404,7 +404,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
detectRatio = !1; detectRatio = !1;
imageTags.Primary ? (url = apiClient.getScaledImageUrl(item.Id, { imageTags.Primary ? (url = apiClient.getScaledImageUrl(item.Id, {
type: "Primary", type: "Primary",
maxHeight: 360, maxHeight: 460,
tag: item.ImageTags.Primary tag: item.ImageTags.Primary
}), detectRatio = !0) : item.BackdropImageTags && item.BackdropImageTags.length ? (url = apiClient.getScaledImageUrl(item.Id, { }), detectRatio = !0) : item.BackdropImageTags && item.BackdropImageTags.length ? (url = apiClient.getScaledImageUrl(item.Id, {
type: "Backdrop", type: "Backdrop",