From 457d37450e8709037ac845e2f29a0c0fbba57200 Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Sun, 8 Mar 2020 22:20:16 +0100 Subject: [PATCH] Further improvements to max size of image requests --- src/components/listview/listview.js | 1 - src/controllers/auth/login.js | 2 +- src/controllers/itemdetailpage.js | 1 - src/controllers/userprofilespage.js | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/listview/listview.js b/src/components/listview/listview.js index d054d8172c..f0f5440aae 100644 --- a/src/components/listview/listview.js +++ b/src/components/listview/listview.js @@ -105,7 +105,6 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan var apiClient = connectionManager.getApiClient(item.ServerId); var options = { - width: width, type: "Primary" }; diff --git a/src/controllers/auth/login.js b/src/controllers/auth/login.js index 4296b8bfb3..a97f2e849d 100644 --- a/src/controllers/auth/login.js +++ b/src/controllers/auth/login.js @@ -106,7 +106,7 @@ define(["apphost", "appSettings", "dom", "connectionManager", "loading", "layout if (user.PrimaryImageTag) { imgUrl = apiClient.getUserImageUrl(user.Id, { - width: 300, + width: 300 * window.devicePixelRatio, tag: user.PrimaryImageTag, type: "Primary" }); diff --git a/src/controllers/itemdetailpage.js b/src/controllers/itemdetailpage.js index 8e03947783..a1be8162be 100644 --- a/src/controllers/itemdetailpage.js +++ b/src/controllers/itemdetailpage.js @@ -1871,7 +1871,6 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "userSetti itemsContainer: castContent, coverImage: true, serverId: item.ServerId, - width: 160, shape: "overflowPortrait" }); }); diff --git a/src/controllers/userprofilespage.js b/src/controllers/userprofilespage.js index 2a2387ab60..3e41c04858 100644 --- a/src/controllers/userprofilespage.js +++ b/src/controllers/userprofilespage.js @@ -88,7 +88,7 @@ define(["loading", "dom", "globalize", "humanedate", "paper-icon-button-light", if (user.PrimaryImageTag) { imgUrl = ApiClient.getUserImageUrl(user.Id, { - width: 300, + width: 300 * window.devicePixelRatio, tag: user.PrimaryImageTag, type: "Primary" });