From 65dcdc96bbdecb01023d30900832b17492e238db Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 23 Aug 2022 19:30:35 +0100 Subject: [PATCH] Update cards block to be ejectable --- .../src/components/BlockComponent.svelte | 2 + .../components/app/blocks/CardsBlock.svelte | 147 +++++++----------- 2 files changed, 57 insertions(+), 92 deletions(-) diff --git a/packages/client/src/components/BlockComponent.svelte b/packages/client/src/components/BlockComponent.svelte index 7076aad514..06865b7032 100644 --- a/packages/client/src/components/BlockComponent.svelte +++ b/packages/client/src/components/BlockComponent.svelte @@ -7,6 +7,7 @@ export let type export let props export let styles + export let css export let context export let order = 0 @@ -29,6 +30,7 @@ normal: { ...styles, }, + custom: css, }, ...props, } diff --git a/packages/client/src/components/app/blocks/CardsBlock.svelte b/packages/client/src/components/app/blocks/CardsBlock.svelte index a13364833a..789aa76c1b 100644 --- a/packages/client/src/components/app/blocks/CardsBlock.svelte +++ b/packages/client/src/components/app/blocks/CardsBlock.svelte @@ -84,35 +84,61 @@ {#if schemaLoaded} -
+
{#if title || enrichedSearchColumns?.length || showTitleButton} -
-
- {title || ""} -
-
+ + + {#if enrichedSearchColumns?.length} - + {#each enrichedSearchColumns as column, idx} + + {/each} {/if} {#if showTitleButton} {/if} -
-
+
+ {/if} @@ -180,67 +207,3 @@
{/if} - -