diff --git a/packages/client/src/components/app/container/GridContainer.svelte b/packages/client/src/components/app/container/GridContainer.svelte index 3c56f9517c..f332e197c3 100644 --- a/packages/client/src/components/app/container/GridContainer.svelte +++ b/packages/client/src/components/app/container/GridContainer.svelte @@ -17,7 +17,12 @@ let mounted = false let styles = memo({}) - $: requiredRows = calculateRequiredRows($children, mobile, addEmptyRows) + $: inBuilder = $builderStore.inBuilder + $: requiredRows = calculateRequiredRows( + $children, + mobile, + addEmptyRows && inBuilder + ) $: requiredHeight = requiredRows * GridRowHeight $: availableRows = Math.floor(height / GridRowHeight) $: rows = Math.max(requiredRows, availableRows) @@ -133,7 +138,7 @@ data-cols={GridColumns} data-col-size={colSize} > - {#if $builderStore.inBuilder} + {#if inBuilder}
{#each { length: GridColumns * rows } as _, idx}