mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Improve handling of Flattened Shows for ElegantFin skin
This commit is contained in:
@@ -504,6 +504,8 @@
|
||||
// Mark as series episodes section
|
||||
seasonSection.classList.add('series-episodes-section');
|
||||
seasonSection.classList.add('nextUpSection');
|
||||
|
||||
const hideSingleSeasonContainer = window.KefinTweaksConfig?.flattenSingleSeasonShows?.hideSingleSeasonContainer === true;
|
||||
|
||||
// ElegantFin handling :)
|
||||
seasonSection.style.cssText = `
|
||||
@@ -511,6 +513,10 @@
|
||||
display: block;
|
||||
`;
|
||||
|
||||
if (seasons.length === 1 && hideSingleSeasonContainer) {
|
||||
seasonSection.style.gridColumn = '1 / 5';
|
||||
}
|
||||
|
||||
const scrollerContainer = seasonSection.querySelector('.emby-scroller');
|
||||
if (scrollerContainer) {
|
||||
scrollerContainer.classList.add('no-padding');
|
||||
|
||||
Reference in New Issue
Block a user