Open stacimc opened 3 years ago
Hi @stacimc ) I will try to fix this bug )
I created PR to fix this bug - https://github.com/WordPress/gutenberg/pull/32131
This is applicable to all core blocks that have the spacing support; not just cover block; able to reproduce in gutenberg 18.6 with a group block.
Description
The spacing block support allows the user to enter arbitrarily large values for padding, which does not respect
width
ormax-width
set on the block and can cause the block to overflow the page.Step-by-step reproduction instructions
Padding
input (99999
), and hit Enter.Expected behaviour
The block should not exceed the width of the page.
Actual behaviour
There is no maximum amount of padding, and the block becomes extremely large and overflows the page.
Screenshots or screen recording (optional)
Note the horizontal scrollbar.
Code snippet (optional)
WordPress information
Device information