diff --git a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte index 3448042894..20cfdb1ec5 100644 --- a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte +++ b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte @@ -16,9 +16,10 @@ scroll, isDragging, buttonColumnWidth, + showVScrollbar, } = getContext("grid") - let measureContainer + let container $: buttons = $props.buttons?.slice(0, 3) || [] $: columnsWidth = $visibleColumns.reduce( @@ -39,7 +40,7 @@ const width = entries?.[0]?.contentRect?.width ?? 0 buttonColumnWidth.set(width) }) - observer.observe(measureContainer) + observer.observe(container) }) @@ -50,7 +51,7 @@ class:hidden={$buttonColumnWidth === 0} >
($hoveredRowId = null)}> - + {#each $renderedRows as row} {@const rowSelected = !!$selectedRows[row._id]} {@const rowHovered = $hoveredRowId === row._id} @@ -59,7 +60,6 @@ class="row" on:mouseenter={$isDragging ? null : () => ($hoveredRowId = row._id)} on:mouseleave={$isDragging ? null : () => ($hoveredRowId = null)} - bind:this={measureContainer} > -
+
{#each buttons as button}