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

fix metadata manager layout

This commit is contained in:
Luke Pulverenti 2015-09-01 15:18:25 -04:00
parent 994b8ec70b
commit a878877550
26 changed files with 2939 additions and 500 deletions

View file

@ -67,17 +67,15 @@
setInitialCollapsibleState(page, item, context, user);
renderDetails(page, item, context);
var hasBackdrop = LibraryBrowser.renderDetailPageBackdrop(page, item);
var hasBackdrop = false;
// For these types, make the backdrop a little smaller so that the items are more quickly accessible
if (item.Type == 'MusicArtist' || item.Type == "MusicAlbum" || item.Type == "Playlist" || item.Type == "BoxSet" || item.Type == "Audio") {
$('#itemBackdrop', page).addClass('noBackdrop').css('background-image', 'none');
Backdrops.setBackdrops(page, [item]);
}
else if (item.Type == "Season" || item.Type == "Series") {
page.querySelector('#itemBackdrop').classList.add('smallBackdrop');
} else {
page.querySelector('#itemBackdrop').classList.remove('smallBackdrop');
else {
hasBackdrop = LibraryBrowser.renderDetailPageBackdrop(page, item);
}
var transparentHeader = hasBackdrop && page.classList.contains('noSecondaryNavPage');