From 3a4c663c0ec983f63b3fe49e24980ef2a75d44d0 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Fri, 13 Feb 2026 03:01:17 +0100 Subject: [PATCH] Enhance configuration layout and improve seasonal section handling --- .../Configuration/configPage.html | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html index 2a1b89f..d49d95d 100644 --- a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html +++ b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html @@ -202,7 +202,7 @@
- @@ -304,7 +304,7 @@

Content Sorting

- @@ -318,7 +318,7 @@
- @@ -534,23 +534,24 @@ var container = page.querySelector('#seasonalSectionsList'); if (!container) return; container.innerHTML = ''; - sections.forEach(function(section) { - MediaBarEnhancedConfigurationPage.createSectionElement(container, section); + sections.forEach(function(section, index) { + MediaBarEnhancedConfigurationPage.createSectionElement(container, section, index + 1); }); }, addSeasonalSection: function(page) { var container = page.querySelector('#seasonalSectionsList'); if (!container) return; + var index = container.children.length + 1; MediaBarEnhancedConfigurationPage.createSectionElement(container, { Name: 'New Season', StartDay: 1, StartMonth: 1, EndDay: 1, EndMonth: 1, MediaIds: '' - }); + }, index); }, - createSectionElement: function(container, data) { + createSectionElement: function(container, data, index) { var div = document.createElement('div'); div.className = 'seasonal-section'; div.style.cssText = 'background: rgba(0,0,0,0.2); padding: 1em; margin-bottom: 1em; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);'; @@ -574,19 +575,22 @@ return h; } - div.innerHTML = '
' + - ' ' + + var labelText = 'Season list #' + (index || 1); + + div.innerHTML = + '
' + + ' ' + '
' + '
' + ' ' + '
' + ' ' + '
' + - '
Name of the season (e.g. Christmas).
' + + '
Name of the season
' + '
' + - '
' + + '
' + ' ' + - '
' + + '
' + ' From:' + mkSelect(data.StartDay, days, 'start-day') + mkSelect(data.StartMonth, months, 'start-month') + @@ -596,7 +600,7 @@ '
' + '
Date range (inclusive) when this content is active.
' + '
' + - '
' + + '
' + ' ' + ' ' + '
Comma-separated list of Movie/Series/Collection IDs to show during this season.
' +