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
|
@ -55,6 +55,12 @@
|
|||
context = 'folders';
|
||||
}
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
if (view == 'Poster') {
|
||||
view = 'PosterCard';
|
||||
}
|
||||
}
|
||||
|
||||
if (view == "Backdrop") {
|
||||
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
|
@ -75,6 +81,16 @@
|
|||
context: context
|
||||
});
|
||||
}
|
||||
else if (view == "PosterCard") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "auto",
|
||||
showTitle: true,
|
||||
context: context,
|
||||
cardLayout: true,
|
||||
showYear: true
|
||||
});
|
||||
}
|
||||
|
||||
var elem = $('#items', page).html(html).lazyChildren();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue