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

begin unifying card layouts

This commit is contained in:
Luke Pulverenti 2016-07-29 16:06:58 -04:00
parent 6503c7c6f8
commit 07d49e2573
34 changed files with 216 additions and 2228 deletions

View file

@ -1,4 +1,4 @@
define(['libraryBrowser', 'emby-itemscontainer'], function (libraryBrowser) {
define(['libraryBrowser', 'cardBuilder', 'emby-itemscontainer'], function (libraryBrowser, cardBuilder) {
// The base query options
var query = {
@ -23,7 +23,7 @@
if (view == "Thumb") {
html = libraryBrowser.getPosterViewHtml({
html = cardBuilder.getCardsHtml({
items: result.Items,
shape: "backdrop",
context: 'channels',
@ -36,7 +36,7 @@
}
else if (view == "ThumbCard") {
html = libraryBrowser.getPosterViewHtml({
html = cardBuilder.getCardsHtml({
items: result.Items,
shape: "backdrop",
preferThumb: true,