From ca96a61cdea035fb42e8ac851aff8f9cc539f7ba Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 1 Mar 2023 16:12:35 +0000 Subject: [PATCH] Tune cell sizes --- .../frontend-core/src/components/sheet/Sheet.svelte | 2 +- .../src/components/sheet/SheetRow.svelte | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/frontend-core/src/components/sheet/Sheet.svelte b/packages/frontend-core/src/components/sheet/Sheet.svelte index 2e5d2b68e7..0065ba08ca 100644 --- a/packages/frontend-core/src/components/sheet/Sheet.svelte +++ b/packages/frontend-core/src/components/sheet/Sheet.svelte @@ -24,7 +24,7 @@ export let API // Sheet constants - const cellHeight = 36 + const cellHeight = 40 const rand = Math.random() // State stores diff --git a/packages/frontend-core/src/components/sheet/SheetRow.svelte b/packages/frontend-core/src/components/sheet/SheetRow.svelte index 830ec9b900..ab5756b4f9 100644 --- a/packages/frontend-core/src/components/sheet/SheetRow.svelte +++ b/packages/frontend-core/src/components/sheet/SheetRow.svelte @@ -7,16 +7,8 @@ export let row - const { - selectedCellId, - reorder, - selectedRows, - rows, - visibleColumns, - cellHeight, - } = getContext("spreadsheet") - - console.log("mount") + const { selectedCellId, reorder, selectedRows, rows, visibleColumns } = + getContext("spreadsheet") $: rowSelected = !!$selectedRows[row._id]