diff --git a/frontend/src/lib/components/apps/editor/GridViewer.svelte b/frontend/src/lib/components/apps/editor/GridViewer.svelte index c38f440181..a4e2c2847e 100644 --- a/frontend/src/lib/components/apps/editor/GridViewer.svelte +++ b/frontend/src/lib/components/apps/editor/GridViewer.svelte @@ -64,7 +64,9 @@ const sizeObserver = new ResizeObserver((entries) => { requestAnimationFrame(() => { let width = entries[0].contentRect.width - + if (width === 0) { + width = 1 + } if (width === containerWidth) return if ($app.mobileViewOnSmallerScreens != false || !getComputedCols) { getComputedCols = getColumn(parentWidth ?? width, cols)