Skip to content

Commit

Permalink
Editor: Update block preview styles to hide non-media placeholders ba…
Browse files Browse the repository at this point in the history
…sed on illustration presence
  • Loading branch information
yogeshbhutkar committed Jan 17, 2025
1 parent 9e62af2 commit bb3206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/block-preview/auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down

0 comments on commit bb3206e

Please sign in to comment.