diff --git a/packages/bbui/src/Form/Core/Dropzone.svelte b/packages/bbui/src/Form/Core/Dropzone.svelte
index ceb672600b..64d851b1e4 100644
--- a/packages/bbui/src/Form/Core/Dropzone.svelte
+++ b/packages/bbui/src/Form/Core/Dropzone.svelte
@@ -355,6 +355,9 @@
input[type="file"] {
display: none;
}
+ .compact .spectrum-Dropzone {
+ padding: 6px 0 !important;
+ }
.gallery {
display: flex;
@@ -381,7 +384,14 @@
}
.compact .placeholder,
.compact img {
- margin: 12px 16px;
+ margin: 10px 16px;
+ }
+ .compact img {
+ height: 90px;
+ }
+ .compact .gallery {
+ padding: 6px 10px;
+ margin-bottom: 8px;
}
.title {
display: flex;
diff --git a/packages/frontend-core/src/components/sheet/cells/HeaderCell.svelte b/packages/frontend-core/src/components/sheet/cells/HeaderCell.svelte
index ff9938d38d..e7ddc887b8 100644
--- a/packages/frontend-core/src/components/sheet/cells/HeaderCell.svelte
+++ b/packages/frontend-core/src/components/sheet/cells/HeaderCell.svelte
@@ -125,7 +125,7 @@
-
+
@@ -129,7 +130,8 @@
{#if $config.allowAddRows}
-
+
+
{/if}
diff --git a/packages/frontend-core/src/components/sheet/layout/SheetBody.svelte b/packages/frontend-core/src/components/sheet/layout/SheetBody.svelte
index d9e0392024..18f1cefbc1 100644
--- a/packages/frontend-core/src/components/sheet/layout/SheetBody.svelte
+++ b/packages/frontend-core/src/components/sheet/layout/SheetBody.svelte
@@ -2,11 +2,17 @@
import { getContext, onMount } from "svelte"
import SheetScrollWrapper from "./SheetScrollWrapper.svelte"
import SheetRow from "./SheetRow.svelte"
+ import { MaxCellRenderHeight } from "../lib/constants"
- const { bounds, renderedRows } = getContext("sheet")
+ const { bounds, renderedRows, visualRowCapacity, cellHeight } =
+ getContext("sheet")
let body
+ $: inversionIdx =
+ $visualRowCapacity - Math.ceil(MaxCellRenderHeight / cellHeight) - 2
+ $: console.log(inversionIdx)
+
onMount(() => {
// Observe and record the height of the body
const observer = new ResizeObserver(() => {
@@ -22,7 +28,7 @@
{#each $renderedRows as row, idx}
-
+ = inversionIdx} />
{/each}
diff --git a/packages/frontend-core/src/components/sheet/layout/SheetControls.svelte b/packages/frontend-core/src/components/sheet/layout/SheetControls.svelte
index 1a6acfb58f..133b3abff8 100644
--- a/packages/frontend-core/src/components/sheet/layout/SheetControls.svelte
+++ b/packages/frontend-core/src/components/sheet/layout/SheetControls.svelte
@@ -1,7 +1,9 @@
+
diff --git a/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte b/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte
index ae42af6494..bd291f6ce3 100644
--- a/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte
+++ b/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte
@@ -4,6 +4,7 @@
export let row
export let idx
+ export let invert = false
const {
selectedCellId,
@@ -40,6 +41,7 @@
{cellId}
{column}
{row}
+ {invert}
/>
{/each}
diff --git a/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte b/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte
index 782ee58646..7239413855 100644
--- a/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte
+++ b/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte
@@ -164,12 +164,12 @@
/* Add shadow when scrolled */
.sticky-column.scrolled :global(.cell:last-child:after) {
- content: " ";
- position: absolute;
- width: 10px;
- height: 100%;
- left: 100%;
- background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
+ /*content: " ";*/
+ /*position: absolute;*/
+ /*width: 10px;*/
+ /*height: 100%;*/
+ /*left: 100%;*/
+ /*background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);*/
}
/* Don't show borders between cells in the sticky column */
@@ -179,7 +179,7 @@
.header {
position: relative;
- z-index: 2;
+ z-index: 3;
}
.header :global(.cell) {
background: var(--spectrum-global-color-gray-100);
diff --git a/packages/frontend-core/src/components/sheet/lib/constants.js b/packages/frontend-core/src/components/sheet/lib/constants.js
new file mode 100644
index 0000000000..3fb5ea9d05
--- /dev/null
+++ b/packages/frontend-core/src/components/sheet/lib/constants.js
@@ -0,0 +1 @@
+export const MaxCellRenderHeight = 216
diff --git a/packages/frontend-core/src/components/sheet/stores/max-scroll.js b/packages/frontend-core/src/components/sheet/stores/max-scroll.js
index e54386cb8c..9d19e93978 100644
--- a/packages/frontend-core/src/components/sheet/stores/max-scroll.js
+++ b/packages/frontend-core/src/components/sheet/stores/max-scroll.js
@@ -12,7 +12,7 @@ export const createMaxScrollStores = context => {
selectedCellId,
gutterWidth,
} = context
- const padding = 255
+ const padding = 264
// Memoize store primitives
const scrollTop = derived(scroll, $scroll => $scroll.top, 0)
diff --git a/packages/frontend-core/src/components/sheet/stores/rows.js b/packages/frontend-core/src/components/sheet/stores/rows.js
index 6c44d24129..6e0b0b1751 100644
--- a/packages/frontend-core/src/components/sheet/stores/rows.js
+++ b/packages/frontend-core/src/components/sheet/stores/rows.js
@@ -136,7 +136,7 @@ export const createRowsStore = context => {
} else {
handleNewRows([newRow])
}
- notifications.success("Row added successfully")
+ notifications.success("Row created successfully")
return newRow
} catch (error) {
notifications.error(`Error adding row: ${error?.message}`)
diff --git a/packages/frontend-core/src/components/sheet/stores/viewport.js b/packages/frontend-core/src/components/sheet/stores/viewport.js
index b1abb6e1a4..df91258b79 100644
--- a/packages/frontend-core/src/components/sheet/stores/viewport.js
+++ b/packages/frontend-core/src/components/sheet/stores/viewport.js
@@ -77,5 +77,10 @@ export const createViewportStores = context => {
[]
)
- return { scrolledRowCount, visualRowCapacity, renderedRows, renderedColumns }
+ return {
+ scrolledRowCount,
+ visualRowCapacity,
+ renderedRows,
+ renderedColumns,
+ }
}