mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed user image scaling
This commit is contained in:
parent
d5780727eb
commit
5218e67d4e
12 changed files with 59 additions and 24 deletions
|
@ -68,19 +68,11 @@
|
|||
|
||||
function getItemHref(item) {
|
||||
|
||||
if (item.Type == 'ManualCollectionsFolder') {
|
||||
if (item.Type == 'ManualCollectionsFolder' || item.CollectionType == 'boxsets') {
|
||||
return 'collections.html?topParentId=' + item.Id;
|
||||
}
|
||||
|
||||
if (item.CollectionType == 'boxsets') {
|
||||
return 'moviecollections.html?topParentId=' + item.Id;
|
||||
}
|
||||
|
||||
if (item.CollectionType == 'trailers') {
|
||||
return 'movietrailers.html?topParentId=' + item.Id;
|
||||
}
|
||||
|
||||
if (item.Type == 'TrailerCollectionFolder') {
|
||||
if (item.CollectionType == 'trailers' || item.Type == 'TrailerCollectionFolder') {
|
||||
return 'movietrailers.html?topParentId=' + item.Id;
|
||||
}
|
||||
|
||||
|
|
|
@ -600,6 +600,7 @@
|
|||
$('#chkSD', page).checked(query.IsHD == false).checkboxradio('refresh');
|
||||
|
||||
$('#chkSubtitle', page).checked(query.HasSubtitles == true).checkboxradio('refresh');
|
||||
$('#chkNoSubtitle', page).checked(query.HasSubtitles === false).checkboxradio('refresh');
|
||||
$('#chkTrailer', page).checked(query.HasTrailer == true).checkboxradio('refresh');
|
||||
$('#chkSpecialFeature', page).checked(query.HasSpecialFeature == true).checkboxradio('refresh');
|
||||
$('#chkThemeSong', page).checked(query.HasThemeSong == true).checkboxradio('refresh');
|
||||
|
@ -712,6 +713,18 @@
|
|||
query.StartIndex = 0;
|
||||
query.HasSubtitles = this.checked ? true : null;
|
||||
|
||||
$('#chkNoSubtitle', page).checked(false).checkboxradio('refresh');
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('#chkNoSubtitle', page).on('change', function () {
|
||||
|
||||
query.StartIndex = 0;
|
||||
query.HasSubtitles = this.checked ? false : null;
|
||||
|
||||
$('#chkSubtitle', page).checked(false).checkboxradio('refresh');
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
SortBy: "DateCreated",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "MusicAlbum",
|
||||
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 5),
|
||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 7 : 5),
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio",
|
||||
ParentId: parentId
|
||||
|
@ -36,7 +36,7 @@
|
|||
SortBy: "DateCreated",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "Audio",
|
||||
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 5),
|
||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 7 : 5),
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
||||
ParentId: parentId
|
||||
|
@ -59,7 +59,7 @@
|
|||
SortBy: "DatePlayed",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "Audio",
|
||||
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 5),
|
||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 7 : 5),
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
||||
Filters: "IsPlayed",
|
||||
|
@ -89,7 +89,7 @@
|
|||
SortBy: "PlayCount",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "Audio",
|
||||
Limit: screenWidth >= 1920 ? 12 : (screenWidth >= 1440 ? 12 : 10),
|
||||
Limit: screenWidth >= 1920 ? 14 : (screenWidth >= 1440 ? 14 : 10),
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
||||
Filters: "IsPlayed",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue