Skip to content

Allow customization of block preview height #60990

@jefferyto

Description

@jefferyto

What problem does this address?

Before WordPress 6.5, the block preview height was not fixed, instead adapting to the height of the preview content. After 6.5, the block preview height appears to be fixed to 150px, I believe as a result of #59112.

150px is not tall enough for many (most?) blocks, but more importantly, any single fixed height will not work for all blocks.

What is your proposed solution?

Support either one or (ideally) both:

  • Allow the block developer to explicitly indicate the ideal preview height, similar to setting viewportWidth.
  • Allow the preview to adapt to the height of the preview content.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions