mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support IntersectionObserver
This commit is contained in:
parent
48058e8fff
commit
b5883925e7
14 changed files with 165 additions and 181 deletions
|
@ -36,10 +36,6 @@
|
|||
return enableScrollX() ? 'overflowPortrait' : 'portrait';
|
||||
}
|
||||
|
||||
function getSquareShape() {
|
||||
return enableScrollX() ? 'overflowSquare' : 'square';
|
||||
}
|
||||
|
||||
function getLibraryButtonsHtml(items) {
|
||||
|
||||
var html = "";
|
||||
|
@ -495,7 +491,7 @@
|
|||
ExcludeLocationTypes: "Virtual",
|
||||
ImageTypeLimit: 1,
|
||||
EnableImageTypes: "Primary,Backdrop,Banner,Thumb",
|
||||
EnableTotalRecordCount: 0
|
||||
EnableTotalRecordCount: false
|
||||
};
|
||||
|
||||
return ApiClient.getItems(userId, options).then(function (result) {
|
||||
|
@ -679,6 +675,7 @@
|
|||
|
||||
userId: userId,
|
||||
limit: 5,
|
||||
Fields: "PrimaryImageAspectRatio,SyncInfo",
|
||||
IsInProgress: false
|
||||
|
||||
}).then(function (result) {
|
||||
|
@ -702,7 +699,7 @@
|
|||
}
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: getSquareShape(),
|
||||
shape: enableScrollX() ? 'autoOverflow' : 'auto',
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
coverImage: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue