diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 0e74174..cfa5507 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -22435,7 +22435,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { movieElem.style.clear = 'both'; } const marginRight = 10; - if (this.renderedRows === 1) { + if (this.renderedRows === 1 || !this.maxRows || this.maxRows < 2) { if (lodash.isEmpty(this.contentContainer.style.width)) { this.contentContainer.style.width = `${parseFloat(movieElem.style.width) + marginRight}px`; } diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 3d20b35..30e8dff 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -669,7 +669,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { movieElem.style.clear = 'both'; } const marginRight = 10; - if (this.renderedRows === 1) { + if (this.renderedRows === 1 || !this.maxRows || this.maxRows < 2) { if (_.isEmpty(this.contentContainer.style.width)) { this.contentContainer.style.width = `${parseFloat(movieElem.style.width) + marginRight}px`; } else {