mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Improve image quality on detail page
This commit is contained in:
parent
df2ae88a72
commit
295d6e32a3
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue