diff --git a/packages/client/src/components/app/GridBlock.svelte b/packages/client/src/components/app/GridBlock.svelte index cf0ec76109..446a792784 100644 --- a/packages/client/src/components/app/GridBlock.svelte +++ b/packages/client/src/components/app/GridBlock.svelte @@ -44,6 +44,7 @@ $: schemaOverrides = getSchemaOverrides(parsedColumns) $: enrichedButtons = enrichButtons(buttons) $: selectedRows = deriveSelectedRows(gridContext) + $: styles = patchStyles($component.styles, minHeight) $: data = { selectedRows: $selectedRows } $: actions = [ { @@ -128,52 +129,54 @@ ) } + const patchStyles = (styles, minHeight) => { + return { + ...styles, + normal: { + ...styles?.normal, + "min-height": `${minHeight}px`, + }, + } + } + onMount(() => { gridContext = grid.getContext() gridContext.minHeight.subscribe($height => (minHeight = $height)) }) - -
- onRowClick?.({ row: e.detail })} - /> -
-
+
+ onRowClick?.({ row: e.detail })} + /> +