From 136e3f8085560d64a937e7d517ea94dd756a1e57 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 19 Mar 2025 18:58:54 +0100 Subject: [PATCH] app frontend fix for 0 width containers --- frontend/src/lib/components/apps/editor/GridViewer.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)