diff --git a/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte b/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte index 3a3a0c462c..dc7cb1cb41 100644 --- a/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte +++ b/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte @@ -1,77 +1,23 @@ @@ -80,18 +26,18 @@
{/if} - {#each $visibleColumns as col} + {#each $visibleColumns as column} @@ -104,7 +50,6 @@ top: 0; z-index: 1; height: var(--cell-height); - left: var(--left); opacity: 0; padding: 0 8px; transform: translateX(-50%); @@ -124,11 +69,4 @@ height: 100%; background: var(--spectrum-global-color-blue-400); } - - :global(.sheet.is-resizing *) { - cursor: col-resize !important; - } - :global(.sheet.is-reordering .resize-slider) { - display: none; - } diff --git a/packages/frontend-core/src/components/sheet/Sheet.svelte b/packages/frontend-core/src/components/sheet/Sheet.svelte index 520a479ad5..cd0b2316c0 100644 --- a/packages/frontend-core/src/components/sheet/Sheet.svelte +++ b/packages/frontend-core/src/components/sheet/Sheet.svelte @@ -12,6 +12,7 @@ export { createUserStores } from "./stores/users" import { createWebsocket } from "./websocket" import { createUserStores } from "./stores/users" + import { createResizeStores } from "./stores/resize" import DeleteButton from "./DeleteButton.svelte" import SheetBody from "./SheetBody.svelte" import ResizeOverlay from "./ResizeOverlay.svelte" @@ -50,6 +51,7 @@ } context = { ...context, ...createRowsStore(context) } context = { ...context, ...createColumnsStores(context) } + context = { ...context, ...createResizeStores(context) } context = { ...context, ...createBoundsStores(context) } context = { ...context, ...createScrollStores(context) } context = { ...context, ...createViewportStores(context) } @@ -57,6 +59,9 @@ context = { ...context, ...createInterfaceStores(context) } context = { ...context, ...createUserStores(context) } + // Reference some stores for local use + const isResizing = context.isResizing + // Keep config store up to date $: config.set({ tableId, @@ -72,7 +77,12 @@ onMount(() => createWebsocket(context)) -