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:
parent
29c077d2cb
commit
569d6456b1
1 changed files with 8 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue