mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update card layouts
This commit is contained in:
parent
8f4f29888e
commit
bb38230c23
46 changed files with 1086 additions and 332 deletions
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
var view = LibraryBrowser.getDefaultItemsView('Thumb', 'Thumb');
|
||||
var view = LibraryBrowser.getDefaultItemsView('Thumb', 'ThumbCard');
|
||||
|
||||
// The base query options
|
||||
var query = {
|
||||
|
@ -39,6 +39,15 @@
|
|||
|
||||
updateFilterControls(page);
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
if (view == 'Thumb') {
|
||||
view = 'ThumbCard';
|
||||
}
|
||||
else if (view == 'Poster') {
|
||||
view = 'PosterCard';
|
||||
}
|
||||
}
|
||||
|
||||
if (view == "Thumb") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
|
@ -63,6 +72,17 @@
|
|||
lazy: true
|
||||
});
|
||||
}
|
||||
else if (view == "PosterCard") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'tv',
|
||||
showItemCounts: true,
|
||||
lazy: true,
|
||||
cardLayout: true,
|
||||
showTitle: true
|
||||
});
|
||||
}
|
||||
else if (view == "Poster") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue