diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index ba858c44b4..6b5f8d99b4 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -729,6 +729,7 @@ "description": "A basic component for displaying images", "icon": "Image", "illegalChildren": ["section"], + "styles": ["size"], "settings": [ { "type": "text", diff --git a/packages/standard-components/src/Image.svelte b/packages/standard-components/src/Image.svelte index d5cafca4d5..fb04f866c6 100644 --- a/packages/standard-components/src/Image.svelte +++ b/packages/standard-components/src/Image.svelte @@ -1,21 +1,29 @@ -{description} +{#if url} + {$component.name} +{:else} +
+ +
+{/if} + + diff --git a/packages/standard-components/src/Placeholder.svelte b/packages/standard-components/src/Placeholder.svelte index 421ecf17e4..455b6fe747 100644 --- a/packages/standard-components/src/Placeholder.svelte +++ b/packages/standard-components/src/Placeholder.svelte @@ -4,12 +4,12 @@ const { builderStore } = getContext("sdk") const component = getContext("component") - export let text = $component.name || "Placeholder" + export let text {#if $builderStore.inBuilder}
- {text} + {text || $component.name || "Placeholder"}
{/if}