diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 64c9c46..2853fb3 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -22819,7 +22819,12 @@ class PlexMeetsHomeAssistant extends HTMLElement { } this.detailElem.style.transition = '0s'; this.detailElem.style.top = `${top - 1000}px`; - this.detailElem.style.left = `${this.minExpandedWidth + 30}px`; + if (!lodash.isEmpty(lodash.get(data, 'thumb'))) { + this.detailElem.style.left = `${this.minExpandedWidth + 30}px`; + } + else { + this.detailElem.style.left = `16px`; + } clearInterval(this.showDetailsTimeout); // eslint-disable-next-line @typescript-eslint/no-misused-promises this.showDetailsTimeout = setTimeout(async () => { diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 6b79cfd..561361e 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -1185,7 +1185,12 @@ class PlexMeetsHomeAssistant extends HTMLElement { this.detailElem.style.transition = '0s'; this.detailElem.style.top = `${top - 1000}px`; - this.detailElem.style.left = `${this.minExpandedWidth + 30}px`; + if (!_.isEmpty(_.get(data, 'thumb'))) { + this.detailElem.style.left = `${this.minExpandedWidth + 30}px`; + } else { + this.detailElem.style.left = `16px`; + } + clearInterval(this.showDetailsTimeout); // eslint-disable-next-line @typescript-eslint/no-misused-promises this.showDetailsTimeout = setTimeout(async () => {