1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update latest

This commit is contained in:
Luke Pulverenti 2016-11-05 14:06:37 -04:00
parent 69b1b7e164
commit 30ad844e37

View file

@ -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>';
}