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:
parent
5677ce1011
commit
4962827f56
6 changed files with 51 additions and 27 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue