@profitlich/template-toolkit 2.18.4 → 2.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -72,7 +72,8 @@ export class MuxPlayer {
|
|
|
72
72
|
player.style.aspectRatio = aspectRatio;
|
|
73
73
|
player.thumbnailTime = 0;
|
|
74
74
|
if (this.#noLowRes) {
|
|
75
|
-
const cssWidth = container.getBoundingClientRect().width
|
|
75
|
+
const cssWidth = container.getBoundingClientRect().width
|
|
76
|
+
|| container.parentElement?.getBoundingClientRect().width;
|
|
76
77
|
const physicalWidth = cssWidth * window.devicePixelRatio;
|
|
77
78
|
// aspectRatio funktioniert mit Zahl und mit Verhältnis (x/y)
|
|
78
79
|
const arRatio = aspectRatio.includes('/')
|
package/package.json
CHANGED