Fix: Search for 1 exact item not displaying anything

pull/72/head
Juraj Nyíri 2 years ago
parent 241be6a70d
commit 4c467253a6

@ -22425,7 +22425,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
movieElem.style.clear = 'both';
}
const marginRight = 10;
if (this.renderedRows === 1 || !this.maxRows || this.maxRows < 2) {
if (this.renderedRows < 2 || !this.maxRows || this.maxRows < 2) {
containerWidth += parseFloat(movieElem.style.width) + marginRight;
}
}

@ -660,7 +660,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
movieElem.style.clear = 'both';
}
const marginRight = 10;
if (this.renderedRows === 1 || !this.maxRows || this.maxRows < 2) {
if (this.renderedRows < 2 || !this.maxRows || this.maxRows < 2) {
containerWidth += parseFloat(movieElem.style.width) + marginRight;
}
}

Loading…
Cancel
Save