diff --git a/packages/block-editor/src/components/block-preview/auto.js b/packages/block-editor/src/components/block-preview/auto.js index b5a0a69f8f7e88..cfdea35cf7acbd 100644 --- a/packages/block-editor/src/components/block-preview/auto.js +++ b/packages/block-editor/src/components/block-preview/auto.js @@ -21,7 +21,7 @@ const MAX_HEIGHT = 2000; const EMPTY_ADDITIONAL_STYLES = []; const PREVIEW_STYLES = { css: `body{height:auto;overflow:hidden;border:none;padding:0;} - .block-editor-warning,.components-placeholder:not(.block-editor-media-placeholder){display:none;} + .block-editor-warning,.components-placeholder:not(:has(.components-placeholder__illustration)){display:none;} .is-root-container .block-editor-block-list__block.has-warning:after{background:none;}`, __unstableType: 'presets', };