Limit block preview height. #24484
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
[Feature] Style Variations
Related to style variations provided by block themes
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
Currently, blocks previews are shown as is, with no limits, causing very large previews for certain blocks, we should consider limiting the height.
Examples:
Checkout block from the WooCommerce Blocks plugin (from a PR):
A long reusable block
To reproduce
Steps to reproduce the behavior:
Expected behavior
The block height should be limited
Screenshots
** Current workout **
Currently, I pass a
isPreview
attribute that adds.is-editor-preview
, and I add some styles with it:See this PR for examples.
Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: