Skip to content

Commit

Permalink
Block Preview: Optimize default additional styles (#59556)
Browse files Browse the repository at this point in the history
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ellatrix <[email protected]>
  • Loading branch information
3 people authored Mar 5, 2024
1 parent 5c84e9f commit 74a326f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/components/block-preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ import EditorStyles from '../editor-styles';
import { store as blockEditorStore } from '../../store';
import { BlockListItems } from '../block-list';

const EMPTY_ADDITIONAL_STYLES = [];

export function BlockPreview( {
blocks,
viewportWidth = 1200,
minHeight,
additionalStyles = [],
additionalStyles = EMPTY_ADDITIONAL_STYLES,
// Deprecated props:
__experimentalMinHeight,
__experimentalPadding,
Expand Down

0 comments on commit 74a326f

Please sign in to comment.