Skip to content

Commit

Permalink
Editor: Update preview styles to hide query block placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 17, 2025
1 parent 75b4eeb commit 514493b
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{display:none;}
.block-editor-warning,.wp-block-query > .components-placeholder{display:none;}
.is-root-container .block-editor-block-list__block.has-warning:after{background:none;}`,
__unstableType: 'presets',
};
Expand Down

0 comments on commit 514493b

Please sign in to comment.