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

revert back padded-left and padded-right

This commit is contained in:
grafixeyehero 2019-12-10 02:32:22 +03:00
parent 156f162d2e
commit e09f868d99

View file

@ -1528,12 +1528,12 @@ define(["loading", "appRouter", "layoutManager", "userSettings", "connectionMana
if (!(currentStartDate && currentStartDate.toDateString() === itemStartDate.toDateString())) { if (!(currentStartDate && currentStartDate.toDateString() === itemStartDate.toDateString())) {
if (currentItems.length) { if (currentItems.length) {
html += '<div class="verticalSection verticalDetailSection">'; html += '<div class="verticalSection verticalDetailSection">';
html += '<h2 class="sectionTitle">' + datetime.toLocaleDateString(currentStartDate, { html += '<h2 class="sectionTitle padded-left">' + datetime.toLocaleDateString(currentStartDate, {
weekday: "long", weekday: "long",
month: "long", month: "long",
day: "numeric" day: "numeric"
}) + "</h2>"; }) + "</h2>";
html += '<div is="emby-itemscontainer" class="vertical-list">' + listView.getListViewHtml({ html += '<div is="emby-itemscontainer" class="vertical-list padded-left padded-right">' + listView.getListViewHtml({
items: currentItems, items: currentItems,
enableUserDataButtons: false, enableUserDataButtons: false,
showParentTitle: true, showParentTitle: true,
@ -1553,12 +1553,12 @@ define(["loading", "appRouter", "layoutManager", "userSettings", "connectionMana
if (currentItems.length) { if (currentItems.length) {
html += '<div class="verticalSection verticalDetailSection">'; html += '<div class="verticalSection verticalDetailSection">';
html += '<h2 class="sectionTitle">' + datetime.toLocaleDateString(currentStartDate, { html += '<h2 class="sectionTitle padded-left">' + datetime.toLocaleDateString(currentStartDate, {
weekday: "long", weekday: "long",
month: "long", month: "long",
day: "numeric" day: "numeric"
}) + "</h2>"; }) + "</h2>";
html += '<div is="emby-itemscontainer" class="vertical-list">' + listView.getListViewHtml({ html += '<div is="emby-itemscontainer" class="vertical-list padded-left padded-right">' + listView.getListViewHtml({
items: currentItems, items: currentItems,
enableUserDataButtons: false, enableUserDataButtons: false,
showParentTitle: true, showParentTitle: true,
@ -1725,13 +1725,13 @@ define(["loading", "appRouter", "layoutManager", "userSettings", "connectionMana
function renderCollectionItemType(page, parentItem, type, items) { function renderCollectionItemType(page, parentItem, type, items) {
var html = ""; var html = "";
html += '<div class="verticalSection">'; html += '<div class="verticalSection">';
html += '<div class="sectionTitleContainer sectionTitleContainer-cards">'; html += '<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">';
html += '<h2 class="sectionTitle sectionTitle-cards">'; html += '<h2 class="sectionTitle sectionTitle-cards">';
html += "<span>" + type.name + "</span>"; html += "<span>" + type.name + "</span>";
html += "</h2>"; html += "</h2>";
html += '<button class="btnAddToCollection sectionTitleButton" type="button" is="paper-icon-button-light" style="margin-left:1em;"><i class="md-icon" icon="add">add</i></button>'; html += '<button class="btnAddToCollection sectionTitleButton" type="button" is="paper-icon-button-light" style="margin-left:1em;"><i class="md-icon" icon="add">add</i></button>';
html += "</div>"; html += "</div>";
html += '<div is="emby-itemscontainer" class="itemsContainer collectionItemsContainer vertical-wrap">'; html += '<div is="emby-itemscontainer" class="itemsContainer collectionItemsContainer vertical-wrap padded-left padded-right">';
var shape = "MusicAlbum" == type.type ? getSquareShape(false) : getPortraitShape(false); var shape = "MusicAlbum" == type.type ? getSquareShape(false) : getPortraitShape(false);
html += cardBuilder.getCardsHtml({ html += cardBuilder.getCardsHtml({
items: items, items: items,