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

scale image sizes depending on pixel ratio

This commit is contained in:
Luke Pulverenti 2014-05-23 21:16:53 -04:00
parent 5677ce1011
commit 4962827f56
6 changed files with 51 additions and 27 deletions

View file

@ -73,7 +73,8 @@
var imgUrl = ApiClient.getScaledImageUrl(item.id, {
type: "Backdrop",
tag: item.tag,
maxWidth: screenWidth
maxWidth: screenWidth,
quality: 80
});
getElement().css('backgroundImage', 'url(\'' + imgUrl + '\')');
@ -102,7 +103,7 @@
var val = LocalSettings.val('enableBackdrops', userId);
return val == '1';
return val != '0';
}
$(document).on('pagebeforeshow', ".backdropPage", function () {