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

Merge pull request #413 from dkanada/card

Fix card layout on home for books
This commit is contained in:
Anthony Lavado 2019-08-25 00:31:48 -04:00 committed by GitHub
commit 6b32af12da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,13 +218,15 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
function getLatestItemsHtmlFn(itemType, viewType) {
return function (items) {
var shape = itemType === 'Channel' || viewType === 'movies' ?
getPortraitShape() :
viewType === 'music' ?
getSquareShape() :
getThumbShape();
var cardLayout = false;
var shape;
if (itemType === 'Channel' || viewType === 'movies' || viewType === 'books') {
shape = getPortraitShape();
} else if (viewType === 'music') {
shape = getSquareShape();
} else {
shape = getThumbShape();
}
return cardBuilder.getCardsHtml({
items: items,