mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update latest
This commit is contained in:
parent
69b1b7e164
commit
30ad844e37
1 changed files with 18 additions and 4 deletions
|
@ -13,6 +13,10 @@
|
|||
return browserInfo.mobile && AppInfo.enableAppLayouts;
|
||||
}
|
||||
|
||||
function getSquareShape() {
|
||||
return enableScrollX() ? 'overflowSquare' : 'square';
|
||||
}
|
||||
|
||||
function getThumbShape() {
|
||||
return enableScrollX() ? 'overflowBackdrop' : 'backdrop';
|
||||
}
|
||||
|
@ -281,18 +285,28 @@
|
|||
|
||||
var shape = viewType === 'movies' ?
|
||||
getPortraitShape() :
|
||||
viewType === 'music' ?
|
||||
getSquareShape() :
|
||||
getThumbShape();
|
||||
|
||||
var supportsImageAnalysis = appHost.supports('imageanalysis');
|
||||
var cardLayout = supportsImageAnalysis && (viewType === 'music' || !viewType);
|
||||
|
||||
html += cardBuilder.getCardsHtml({
|
||||
items: items,
|
||||
shape: shape,
|
||||
preferThumb: viewType != 'movies',
|
||||
preferThumb: viewType !== 'movies' && viewType !== 'music',
|
||||
showUnplayedIndicator: false,
|
||||
showChildCountIndicator: true,
|
||||
context: 'home',
|
||||
centerText: true,
|
||||
overlayText: !cardLayout,
|
||||
centerText: !cardLayout,
|
||||
overlayPlayButton: viewType !== 'photos',
|
||||
allowBottomPadding: !enableScrollX()
|
||||
allowBottomPadding: !enableScrollX() && !cardLayout,
|
||||
cardLayout: cardLayout,
|
||||
showTitle: viewType === 'music' || !viewType,
|
||||
showParentTitle: viewType === 'music' || !viewType,
|
||||
vibrant: supportsImageAnalysis && cardLayout
|
||||
});
|
||||
html += '</div>';
|
||||
}
|
||||
|
@ -479,7 +493,7 @@
|
|||
overlayPlayButton: true,
|
||||
context: 'home',
|
||||
centerText: true,
|
||||
allowBottomPadding: !enableScrollX()
|
||||
allowBottomPadding: false
|
||||
});
|
||||
html += '</div>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue