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

update playlist content

This commit is contained in:
Luke Pulverenti 2016-10-12 14:23:09 -04:00
parent a511a2fa84
commit d08286c538
24 changed files with 1115 additions and 156 deletions

View file

@ -1,4 +1,4 @@
define(['datetime', 'cardBuilder', 'listView'], function (datetime, cardBuilder, listView) {
define(['datetime', 'cardBuilder', 'apphost'], function (datetime, cardBuilder, appHost) {
function enableScrollX() {
return browserInfo.mobile && AppInfo.enableAppLayouts;
@ -81,6 +81,9 @@
html += '<div is="emby-itemscontainer" class="itemsContainer vertical-wrap">';
}
var supportsImageAnalysis = appHost.supports('imageanalysis');
var cardLayout = appHost.preferVisualCards || supportsImageAnalysis;
html += cardBuilder.getCardsHtml({
items: group.items,
shape: getBackdropShape(),
@ -88,8 +91,9 @@
showAirTime: true,
showAirEndTime: true,
showChannelName: true,
cardLayout: true,
vibrant: true,
cardLayout: cardLayout,
centerText: !cardLayout,
vibrant: supportsImageAnalysis,
action: 'edit',
cardFooterAside: 'none',
preferThumb: true,