|
|
@ -19533,10 +19533,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
if (this.episodesElem && !this.episodesElemFreshlyLoaded) {
|
|
|
|
if (this.episodesElem && !this.episodesElemFreshlyLoaded) {
|
|
|
|
this.episodesElem.innerHTML = '';
|
|
|
|
this.episodesElem.innerHTML = '';
|
|
|
|
this.episodesElem.style.display = 'none';
|
|
|
|
this.episodesElem.style.display = 'none';
|
|
|
|
// fix for a specific case when user scrolls outside of normal home assistant area for seasons look
|
|
|
|
|
|
|
|
console.log('AAA');
|
|
|
|
|
|
|
|
this.resizeBackground();
|
|
|
|
this.resizeBackground();
|
|
|
|
console.log('BBB');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 700);
|
|
|
|
}, 700);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -19714,7 +19711,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
episodeContainer.append(episodeNumber);
|
|
|
|
episodeContainer.append(episodeNumber);
|
|
|
|
episodeContainer.addEventListener('click', episodeEvent => {
|
|
|
|
episodeContainer.addEventListener('click', episodeEvent => {
|
|
|
|
episodeEvent.stopPropagation();
|
|
|
|
episodeEvent.stopPropagation();
|
|
|
|
console.log(episodeData);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.episodesElem.append(episodeContainer);
|
|
|
|
this.episodesElem.append(episodeContainer);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -19734,9 +19730,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
})();
|
|
|
|
})();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
console.log('A');
|
|
|
|
|
|
|
|
await this.minimizeSeasons();
|
|
|
|
await this.minimizeSeasons();
|
|
|
|
console.log('B');
|
|
|
|
|
|
|
|
this.hideEpisodes();
|
|
|
|
this.hideEpisodes();
|
|
|
|
this.activeMovieElem.style.top = `${top + 16}px`;
|
|
|
|
this.activeMovieElem.style.top = `${top + 16}px`;
|
|
|
|
if (this.detailElem && this.detailElem.children[1]) {
|
|
|
|
if (this.detailElem && this.detailElem.children[1]) {
|
|
|
@ -19772,18 +19766,13 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const requiredSeasonBodyHeight = parseInt(this.seasonsElem.style.top.replace('px', ''), 10) + this.seasonsElem.scrollHeight;
|
|
|
|
const requiredSeasonBodyHeight = parseInt(this.seasonsElem.style.top.replace('px', ''), 10) + this.seasonsElem.scrollHeight;
|
|
|
|
const requiredEpisodeBodyHeight = parseInt(this.episodesElem.style.top.replace('px', ''), 10) + this.episodesElem.scrollHeight;
|
|
|
|
const requiredEpisodeBodyHeight = parseInt(this.episodesElem.style.top.replace('px', ''), 10) + this.episodesElem.scrollHeight;
|
|
|
|
console.log(this.seasonsElemHidden);
|
|
|
|
|
|
|
|
console.log(this.episodesElemHidden);
|
|
|
|
|
|
|
|
if (requiredSeasonBodyHeight > this.contentBGHeight && !this.seasonsElemHidden) {
|
|
|
|
if (requiredSeasonBodyHeight > this.contentBGHeight && !this.seasonsElemHidden) {
|
|
|
|
console.log('1');
|
|
|
|
|
|
|
|
contentbg[0].style.height = `${requiredSeasonBodyHeight}px`;
|
|
|
|
contentbg[0].style.height = `${requiredSeasonBodyHeight}px`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (requiredEpisodeBodyHeight > this.contentBGHeight && !this.episodesElemHidden) {
|
|
|
|
else if (requiredEpisodeBodyHeight > this.contentBGHeight && !this.episodesElemHidden) {
|
|
|
|
console.log('2');
|
|
|
|
|
|
|
|
contentbg[0].style.height = `${requiredEpisodeBodyHeight}px`;
|
|
|
|
contentbg[0].style.height = `${requiredEpisodeBodyHeight}px`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
console.log('3');
|
|
|
|
|
|
|
|
contentbg[0].style.height = '100%';
|
|
|
|
contentbg[0].style.height = '100%';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|