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

Code review changes implemented

This commit is contained in:
SenorSmartyPants 2023-02-07 13:12:19 -06:00
parent 65543e77a4
commit 5c51b4b985
3 changed files with 13 additions and 13 deletions

View file

@ -38,16 +38,6 @@
color: #888; color: #888;
} }
.listItemMediaInfo + .timerIndicator {
[dir="ltr"] & {
margin-left: 0.25em;
}
[dir="rtl"] & {
margin-right: 0.25em;
}
}
.indicator + .indicator { .indicator + .indicator {
[dir="ltr"] & { [dir="ltr"] & {
margin-left: 0.25em; margin-left: 0.25em;

View file

@ -320,3 +320,13 @@
.listItemCheckboxContainer { .listItemCheckboxContainer {
width: auto !important; width: auto !important;
} }
.listItemMediaInfo + .timerIndicator {
[dir="ltr"] & {
margin-left: 0.25em;
}
[dir="rtl"] & {
margin-right: 0.25em;
}
}

View file

@ -96,7 +96,7 @@ function getContextMenuOptions(item, user, button) {
}; };
} }
function getProgramScheduleHtml(items, action) { function getProgramScheduleHtml(items, action = 'none') {
return listView.getListViewHtml({ return listView.getListViewHtml({
items: items, items: items,
enableUserDataButtons: false, enableUserDataButtons: false,
@ -106,7 +106,7 @@ function getProgramScheduleHtml(items, action) {
showChannel: false, showChannel: false,
mediaInfo: true, mediaInfo: true,
runtime: false, runtime: false,
action: action, action,
moreButton: false, moreButton: false,
recordButton: false recordButton: false
}); });
@ -126,7 +126,7 @@ function renderSeriesTimerSchedule(page, apiClient, seriesTimerId) {
result.Items = []; result.Items = [];
} }
const html = getProgramScheduleHtml(result.Items, 'none'); const html = getProgramScheduleHtml(result.Items);
const scheduleTab = page.querySelector('#seriesTimerSchedule'); const scheduleTab = page.querySelector('#seriesTimerSchedule');
scheduleTab.innerHTML = html; scheduleTab.innerHTML = html;
imageLoader.lazyChildren(scheduleTab); imageLoader.lazyChildren(scheduleTab);