mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display trailers within suggestions
This commit is contained in:
parent
5f61a3bbee
commit
b5820d6e0b
18 changed files with 68 additions and 63 deletions
|
@ -122,7 +122,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
function loadRecentlyAdded(elem, userId) {
|
||||
function loadRecentlyAdded(elem, userId, context) {
|
||||
|
||||
var screenWidth = $(window).width();
|
||||
|
||||
|
@ -144,10 +144,10 @@
|
|||
items: items,
|
||||
preferThumb: true,
|
||||
shape: 'homePageBackdrop',
|
||||
context: 'home',
|
||||
context: context || 'home',
|
||||
showUnplayedIndicator: false,
|
||||
showChildCountIndicator: true,
|
||||
lazy: true
|
||||
lazy: true,
|
||||
});
|
||||
html += '</div>';
|
||||
}
|
||||
|
@ -354,7 +354,7 @@
|
|||
|
||||
var options = {
|
||||
|
||||
Limit: screenWidth >= 1600 ? 5 : (screenWidth >= 1440 ? 5 : (screenWidth >= 800 ? 6 : 6)),
|
||||
Limit: screenWidth >= 1600 ? 6 : (screenWidth >= 1440 ? 5 : (screenWidth >= 800 ? 6 : 6)),
|
||||
Fields: "PrimaryImageAspectRatio",
|
||||
Filters: "IsUnplayed",
|
||||
UserId: Dashboard.getCurrentUserId(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue