diff --git a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte index d098309ac9..20cfdb1ec5 100644 --- a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte +++ b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte @@ -19,7 +19,7 @@ showVScrollbar, } = getContext("grid") - let measureContainer + let container $: buttons = $props.buttons?.slice(0, 3) || [] $: columnsWidth = $visibleColumns.reduce( @@ -40,7 +40,7 @@ const width = entries?.[0]?.contentRect?.width ?? 0 buttonColumnWidth.set(width) }) - observer.observe(measureContainer) + observer.observe(container) }) @@ -51,7 +51,7 @@ class:hidden={$buttonColumnWidth === 0} >