Skip to content

Commit f79c14b

Browse files
author
Juraj Nyíri
committed
Merge branch 'maxHorizontalRows'
2 parents b9e732e + 7770291 commit f79c14b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/plex-meets-homeassistant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22429,7 +22429,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
2242922429
movieElem.style.clear = 'both';
2243022430
}
2243122431
const marginRight = 10;
22432-
if (this.renderedRows < 2 || !this.maxRows || this.maxRows < 2) {
22432+
if (this.renderedRows === 1 || !this.maxRows || this.maxRows < 2) {
2243322433
containerWidth += parseFloat(movieElem.style.width) + marginRight;
2243422434
}
2243522435
}

src/plex-meets-homeassistant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
667667
movieElem.style.clear = 'both';
668668
}
669669
const marginRight = 10;
670-
if (this.renderedRows < 2 || !this.maxRows || this.maxRows < 2) {
670+
if (this.renderedRows === 1 || !this.maxRows || this.maxRows < 2) {
671671
containerWidth += parseFloat(movieElem.style.width) + marginRight;
672672
}
673673
}

0 commit comments

Comments
 (0)