diff --git a/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte b/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte
index b099c25a07..d6665777d8 100644
--- a/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte
+++ b/packages/frontend-core/src/components/sheet/ResizeOverlay.svelte
@@ -62,7 +62,6 @@
}
const getStyle = (col, scrollLeft, rowCount) => {
- console.log("stye")
const left = col.left + col.width - (col.idx === 0 ? 0 : scrollLeft)
const contentHeight = (rowCount + 2) * cellHeight
return `--left:${left}px; --content-height:${contentHeight}px;`
diff --git a/packages/frontend-core/src/components/sheet/SheetBody.svelte b/packages/frontend-core/src/components/sheet/SheetBody.svelte
index 308d17a726..f7cf7c63ab 100644
--- a/packages/frontend-core/src/components/sheet/SheetBody.svelte
+++ b/packages/frontend-core/src/components/sheet/SheetBody.svelte
@@ -11,6 +11,7 @@
$: contentHeight = ($rows.length + 2) * cellHeight
$: contentWidth = computeContentWidth($columns)
+ $: scrollLeft = $scroll.left
const computeContentWidth = columns => {
if (!columns.length) {
@@ -43,7 +44,7 @@
0}
+ class:horizontally-scrolled={scrollLeft > 0}
on:click|self={() => ($selectedCellId = null)}
on:scroll={handleScroll}
>
diff --git a/packages/frontend-core/src/components/sheet/stores/rows.js b/packages/frontend-core/src/components/sheet/stores/rows.js
index 1ce2cf23dc..fbfe15822b 100644
--- a/packages/frontend-core/src/components/sheet/stores/rows.js
+++ b/packages/frontend-core/src/components/sheet/stores/rows.js
@@ -62,7 +62,6 @@ export const createRowsStore = context => {
if (!loaded) {
// Hydrate initial data
loaded = true
- console.log("instantiate new fetch data")
schema.set($$fetch.schema)
primaryDisplay.set($$fetch.definition?.primaryDisplay)
}
@@ -179,9 +178,7 @@ export const createRowsStore = context => {
// Loads the next page of data if available
const loadNextPage = () => {
- const $fetch = get(fetch)
- console.log("fetch next page")
- $fetch?.nextPage()
+ get(fetch)?.nextPage()
}
return {
diff --git a/packages/frontend-core/src/components/sheet/stores/viewport.js b/packages/frontend-core/src/components/sheet/stores/viewport.js
index 4a1698f873..9379c1670b 100644
--- a/packages/frontend-core/src/components/sheet/stores/viewport.js
+++ b/packages/frontend-core/src/components/sheet/stores/viewport.js
@@ -33,7 +33,6 @@ export const createViewportStores = context => {
const visibleRows = derived(
[rows, scrollTopStore, height],
([$rows, $scrollTop, $height]) => {
- console.log("new rows")
const maxRows = Math.ceil($height / cellHeight) + 16
const firstRow = Math.max(0, Math.floor($scrollTop / cellHeight) - 8)
return $rows.slice(firstRow, firstRow + maxRows)
@@ -44,7 +43,6 @@ export const createViewportStores = context => {
const visibleColumns = derived(
[columns, scrollLeftStore, width],
([$columns, $scrollLeft, $width]) => {
- console.log("new columns")
if (!$columns.length) {
return []
}