Fix: Bug introduced in 3.0.4 where opening an item opened it in small window

music
Juraj Nyíri 3 years ago
parent dc6397f8d1
commit 141c9ea7a6

@ -22092,8 +22092,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.content.innerHTML = this.loadCustomStyles();
if (this.useHorizontalScroll) {
this.content.style.overflowX = 'auto';
this.content.style.zIndex = '1';
this.content.style.position = 'relative';
this.content.style.whiteSpace = 'nowrap';
}
if (this.error !== '') {
@ -22368,6 +22366,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
}
};
this.minimizeAll = () => {
// this.content.style.position = 'relative';
this.detailsShown = false;
if (this.activeMovieElem) {
this.activeMovieElem.style.display = `block`;
@ -22988,12 +22987,14 @@ class PlexMeetsHomeAssistant extends HTMLElement {
const contentbg = this.getElementsByClassName('contentbg');
contentbg[0].style.zIndex = '2';
contentbg[0].style.backgroundColor = 'rgba(0,0,0,0.9)';
contentbg[0].style.display = 'block';
};
this.hideBackground = () => {
const contentbg = this.getElementsByClassName('contentbg')[0];
contentbg.classList.remove('no-transparency');
contentbg.style.zIndex = '1';
contentbg.style.backgroundColor = 'rgba(0,0,0,0)';
contentbg.style.display = 'none';
const contentArt = this.getElementsByClassName('contentArt')[0];
contentArt.style.display = 'none';
};

@ -719,8 +719,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.content.innerHTML = this.loadCustomStyles();
if (this.useHorizontalScroll) {
this.content.style.overflowX = 'auto';
this.content.style.zIndex = '1';
this.content.style.position = 'relative';
this.content.style.whiteSpace = 'nowrap';
}
@ -1022,6 +1020,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
};
minimizeAll = (): void => {
// this.content.style.position = 'relative';
this.detailsShown = false;
if (this.activeMovieElem) {
this.activeMovieElem.style.display = `block`;
@ -1708,6 +1707,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
const contentbg = this.getElementsByClassName('contentbg');
(contentbg[0] as HTMLElement).style.zIndex = '2';
(contentbg[0] as HTMLElement).style.backgroundColor = 'rgba(0,0,0,0.9)';
(contentbg[0] as HTMLElement).style.display = 'block';
};
hideBackground = (): void => {
@ -1715,6 +1715,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
contentbg.classList.remove('no-transparency');
contentbg.style.zIndex = '1';
contentbg.style.backgroundColor = 'rgba(0,0,0,0)';
contentbg.style.display = 'none';
const contentArt = this.getElementsByClassName('contentArt')[0] as HTMLElement;
contentArt.style.display = 'none';
};

Loading…
Cancel
Save