|
|
@ -461,8 +461,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
|
|
|
|
|
|
|
this.scrollDownInactiveSeasons();
|
|
|
|
this.scrollDownInactiveSeasons();
|
|
|
|
|
|
|
|
|
|
|
|
seasonElem.style.marginTop = `${-CSS_STYLE.expandedHeight - 16}px`;
|
|
|
|
seasonContainer.style.top = `${-CSS_STYLE.expandedHeight}px`;
|
|
|
|
|
|
|
|
|
|
|
|
seasonElem.style.width = `${CSS_STYLE.expandedWidth}px`;
|
|
|
|
seasonElem.style.width = `${CSS_STYLE.expandedWidth}px`;
|
|
|
|
seasonElem.style.height = `${CSS_STYLE.expandedHeight - 6}px`;
|
|
|
|
seasonElem.style.height = `${CSS_STYLE.expandedHeight - 6}px`;
|
|
|
|
seasonElem.style.zIndex = '3';
|
|
|
|
seasonElem.style.zIndex = '3';
|
|
|
@ -471,6 +470,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
|
|
|
|
|
|
|
seasonTitleElem.style.color = 'rgba(255,255,255,0)';
|
|
|
|
seasonTitleElem.style.color = 'rgba(255,255,255,0)';
|
|
|
|
seasonEpisodesCount.style.color = 'rgba(255,255,255,0)';
|
|
|
|
seasonEpisodesCount.style.color = 'rgba(255,255,255,0)';
|
|
|
|
|
|
|
|
|
|
|
|
if (this.detailElem) {
|
|
|
|
if (this.detailElem) {
|
|
|
|
(this.detailElem.children[1] as HTMLElement).innerHTML = seasonData.title;
|
|
|
|
(this.detailElem.children[1] as HTMLElement).innerHTML = seasonData.title;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -547,6 +547,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})();
|
|
|
|
})();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
seasonContainer.style.top = `${seasonContainer.dataset.top}px`;
|
|
|
|
this.minimizeSeasons();
|
|
|
|
this.minimizeSeasons();
|
|
|
|
this.hideEpisodes();
|
|
|
|
this.hideEpisodes();
|
|
|
|
this.activeMovieElem.style.top = `${top + 16}px`;
|
|
|
|
this.activeMovieElem.style.top = `${top + 16}px`;
|
|
|
@ -563,6 +564,21 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
this.seasonsElem.append(seasonContainer);
|
|
|
|
this.seasonsElem.append(seasonContainer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_.forEach((this.seasonsElem as HTMLElement).children, elem => {
|
|
|
|
|
|
|
|
const seasonElem = elem as HTMLElement;
|
|
|
|
|
|
|
|
const left = seasonElem.offsetLeft;
|
|
|
|
|
|
|
|
const topElem = seasonElem.offsetTop;
|
|
|
|
|
|
|
|
seasonElem.style.left = `${left}px`;
|
|
|
|
|
|
|
|
seasonElem.dataset.left = `${left}`;
|
|
|
|
|
|
|
|
seasonElem.style.top = `${topElem}px`;
|
|
|
|
|
|
|
|
seasonElem.dataset.top = `${topElem}`;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
_.forEach((this.seasonsElem as HTMLElement).children, elem => {
|
|
|
|
|
|
|
|
const seasonElem = elem as HTMLElement;
|
|
|
|
|
|
|
|
seasonElem.style.position = 'absolute';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.seasonElemFreshlyLoaded = false;
|
|
|
|
this.seasonElemFreshlyLoaded = false;
|
|
|
|
}, 700);
|
|
|
|
}, 700);
|
|
|
|