From 76eba5299935f182d663b28df84eaa1c79a4ada2 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 1 Aug 2023 09:25:06 +0100 Subject: [PATCH] Animate popovers for header cells and adding columns --- .../frontend-core/src/components/grid/cells/HeaderCell.svelte | 1 - .../src/components/grid/layout/NewColumnButton.svelte | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte b/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte index 94b1ce6319..baccf0f59c 100644 --- a/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte @@ -173,7 +173,6 @@ align="right" offset={0} popoverTarget={document.getElementById(`grid-${rand}`)} - animate={false} customZindex={100} > {#if editIsOpen} diff --git a/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte b/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte index 069e2ce1af..4c1641b405 100644 --- a/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte +++ b/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte @@ -7,6 +7,7 @@ let anchor let open = false + $: columnsWidth = $renderedColumns.reduce( (total, col) => (total += col.width), 0 @@ -17,6 +18,7 @@ const close = () => { open = false } + onMount(() => subscribe("close-edit-column", close)) @@ -35,7 +37,6 @@ align="right" offset={0} popoverTarget={document.getElementById(`add-column-button`)} - animate={false} customZindex={100} >