From 134cf87608ba226bccb4b6d8d9858a892239b533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 4 Jun 2021 14:34:52 +0200 Subject: [PATCH] display placeholders --- .../standard-components/src/Layout.svelte | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/packages/standard-components/src/Layout.svelte b/packages/standard-components/src/Layout.svelte index 7b8a2f93b4..c896b7f2b4 100644 --- a/packages/standard-components/src/Layout.svelte +++ b/packages/standard-components/src/Layout.svelte @@ -1,12 +1,17 @@
+ {#if layoutMap[type] - $component.children > 0} + {#each new Array(layoutMap[type] - $component.children) as _} +

Add some components to display.

+ {/each} + {/if}