small init fix

This commit is contained in:
Ruben Fiszel
2025-03-19 18:14:21 +01:00
parent 94258cf5ba
commit b1f3d3f39a
@@ -84,7 +84,9 @@
const sizeObserver = new ResizeObserver((entries) => {
requestAnimationFrame(() => {
let width = entries[0].contentRect.width
if (width === 0) {
width = 1
}
if (width === containerWidth) {
mounted = true
return