From f8f6564b6041f45cf7e11049f436475ecb8b4362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Fri, 11 Mar 2022 18:29:46 +0100 Subject: [PATCH] Fix initial data, improve block placeholder --- packages/core/lib/components/BlockPlaceholder.scss | 3 ++- packages/docs/public/initial-data.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/core/lib/components/BlockPlaceholder.scss b/packages/core/lib/components/BlockPlaceholder.scss index ef65998..61e5f9b 100644 --- a/packages/core/lib/components/BlockPlaceholder.scss +++ b/packages/core/lib/components/BlockPlaceholder.scss @@ -1,5 +1,6 @@ .sb-block-placeholder { - width: 100%; + flex-basis: 100%; + flex-shrink: 2; position: relative; overflow: visible; diff --git a/packages/docs/public/initial-data.json b/packages/docs/public/initial-data.json index d3cf6b7..c9312f4 100644 --- a/packages/docs/public/initial-data.json +++ b/packages/docs/public/initial-data.json @@ -4,6 +4,15 @@ "data": { "orientation": "vertical", "children": [ + { + "name": "sb-heading", + "id": "1480592112212", + "data": { + "value": "A pretty heading", + "align": "center", + "level": 1 + } + }, { "name": "sb-paragraph", "id": "1590592112200",