From 65aac9b44fa89c969b9e6fa770f3898a795c065a Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Sat, 11 Feb 2023 23:17:17 +0600 Subject: [PATCH] Fix table footer (#2619) Signed-off-by: Denis Bykhov --- .../src/components/Table.svelte | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/plugins/view-resources/src/components/Table.svelte b/plugins/view-resources/src/components/Table.svelte index e7236b964c..a113b83349 100644 --- a/plugins/view-resources/src/components/Table.svelte +++ b/plugins/view-resources/src/components/Table.svelte @@ -26,6 +26,7 @@ IconUp, Label, Loading, + resizeObserver, showPopup, Spinner } from '@hcengineering/ui' @@ -211,12 +212,22 @@ const key = attribute.castRequest ? attribute.key.substring(attribute.castRequest.length + 1) : attribute.key return (value: any) => onChange(value, doc, key, attr) } + + let width: number {#await buildModel({ client, _class, keys: config, lookup })} {:then model} - +
{ + width = element.clientWidth + }} + class="antiTable" + class:metaColumn={enableChecking || showNotification} + class:highlightRows + > {#if !hiddenHeader} @@ -350,7 +361,8 @@ {#if loading > 0}{/if} {/await} {#if showFooter && total} -