Skip to content

Commit

Permalink
Editor: Improve readability of preview styles in block preview component
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 16, 2025
1 parent b88e4ba commit 75b4eeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/components/block-preview/auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down

0 comments on commit 75b4eeb

Please sign in to comment.