Aligned cover block: In the editor, the block width changes depending on the content. #21855
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
[Type] Enhancement
A suggestion for improvement.
Describe the bug
If I align a cover block to the left or right, and start typing the first paragraph, the width of the block is reduced.
When I stop typing and save my post or page, the width of the block stays at that same width in the editor.
It shows at the expected width on the front.
Now If I add a second block inside the cover block, below the first paragraph, but deselect the block without adding content, the cover block is returned to it's expected width.
Now if I remove the inserter/block placeholder, the block is again reduced in width.
To reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the cover block to stay the same width while typing.
I expect the cover block to stay the same width no matter if a block placeholder is present inside of it.
I expect the width of the cover block to be the same in the editor and in the front.
Themes handle the alignments differently, but I don't think it is a theme issue because I could not find a theme where the width stayed the same, as I expected it to.
Screenshots
Editor
Editor with placeholder present:
Front:
Editor version (please complete the following information):
Tested both with and without Gutenberg with the same result.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: