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

fix card layout on home for books

This commit is contained in:
dkanada 2019-08-22 15:23:05 -07:00
parent 29c077d2cb
commit 569d6456b1

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,