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

Fix padding for plain itemscontainer

This commit is contained in:
Dmitry Lyzo 2020-02-16 17:42:00 +03:00
parent 7a9fbb3edf
commit 54fdd34f77
3 changed files with 4 additions and 2 deletions

View file

@ -152,7 +152,7 @@ define(["layoutManager", "loading", "libraryBrowser", "cardBuilder", "lazyLoader
var scrollXClass = "scrollX hiddenScrollX";
if (layoutManager.tv) {
scrollXClass += "smoothScrollX";
scrollXClass += "smoothScrollX padded-top-focusscale padded-bottom-focusscale";
}
html += '<div is="emby-itemscontainer" class="itemsContainer ' + scrollXClass + ' lazy padded-left padded-right" data-id="' + item.Id + '">';

View file

@ -178,6 +178,8 @@ define(["events", "layoutManager", "inputManager", "userSettings", "libraryMenu"
if (layoutManager.tv) {
elem.classList.add("smoothScrollX");
elem.classList.add("padded-top-focusscale");
elem.classList.add("padded-bottom-focusscale");
}
elem.classList.add("scrollX");

View file

@ -147,7 +147,7 @@ define(["layoutManager", "loading", "libraryBrowser", "cardBuilder", "lazyLoader
if (enableScrollX()) {
var scrollXClass = "scrollX hiddenScrollX";
if (layoutManager.tv) {
scrollXClass += "smoothScrollX";
scrollXClass += "smoothScrollX padded-top-focusscale padded-bottom-focusscale";
}
html += '<div is="emby-itemscontainer" class="itemsContainer ' + scrollXClass + ' lazy padded-left padded-right" data-id="' + item.Id + '">';
} else {