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

fix album list

This commit is contained in:
Luke Pulverenti 2016-07-31 15:05:56 -04:00
parent ea34f6f28d
commit 83650803b2

View file

@ -1074,6 +1074,7 @@
var html = '';
var scrollX = false;
var isList = false;
if (item.Type == "MusicAlbum") {
@ -1087,7 +1088,7 @@
action: 'playallfromhere',
lazy: true
});
isList = true;
}
else if (item.Type == "Series") {
@ -1131,9 +1132,17 @@
if (scrollX) {
elem.classList.add('hiddenScrollX');
elem.classList.remove('vertical-wrap');
elem.classList.remove('vertical-list');
} else {
elem.classList.remove('hiddenScrollX');
elem.classList.add('vertical-wrap');
if (isList) {
elem.classList.add('vertical-list');
elem.classList.remove('vertical-wrap');
} else {
elem.classList.add('vertical-wrap');
elem.classList.remove('vertical-list');
}
}
elem.innerHTML = html;