pixelgrade / nova-blocks

A collection of design-driven WordPress editor blocks committed to making your site shine like a newborn star 💫
https://pixelgrade.com/plugins/nova-blocks/
GNU General Public License v3.0
65 stars 4 forks source link

Block Patterns: Maintain a 16:9 ratio for the "Full Container Height" blocks preview #402

Closed georgeolaru closed 2 years ago

georgeolaru commented 2 years ago

I notice that the blocks that have the Minimum Container Height option set to Full produce a Block Pattern preview that has the Height larger than the Width with an inversed ratio of 9:16.

It would be great if we can limit the max-height of the iframe to maintain a ratio closer to 16:9 (eg. 1400 x 800):

https://user-images.githubusercontent.com/1632775/175489009-8bbc301a-e294-4a94-8b4b-41035c4dec56.mp4