From 75b4eebeef5151f7ac7baf701a1133070cc93e61 Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Thu, 16 Jan 2025 15:46:14 +0530 Subject: [PATCH] Editor: Improve readability of preview styles in block preview component --- packages/block-editor/src/components/block-preview/auto.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-preview/auto.js b/packages/block-editor/src/components/block-preview/auto.js index 3e2a7a58c7c44b..b285c31c1b049f 100644 --- a/packages/block-editor/src/components/block-preview/auto.js +++ b/packages/block-editor/src/components/block-preview/auto.js @@ -20,7 +20,9 @@ const MemoizedBlockList = memo( BlockList ); const MAX_HEIGHT = 2000; const EMPTY_ADDITIONAL_STYLES = []; const PREVIEW_STYLES = { - css: 'body{height:auto;overflow:hidden;border:none;padding:0;} .block-editor-warning{display:none;} .is-root-container .block-editor-block-list__block.has-warning:after{background:none;}', + css: `body{height:auto;overflow:hidden;border:none;padding:0;} + .block-editor-warning{display:none;} + .is-root-container .block-editor-block-list__block.has-warning:after{background:none;}`, __unstableType: 'presets', };