Cover block with custom content position limits width of inner container #78502
Labels
Blocks
Editor blocks, aka Gutenberg blocks, plugins, and extensions
Customer Report
Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".
[Feature] Core Blocks
Blocks that come with Gutenberg.
[Feature Group] Editor Experience
Features related to Gutenberg integration on WordPress.com.
[Platform] Atomic
[Platform] Simple
[Pri] Normal
[Status] Core Fix Needed
A fix within the Core WordPress or Gutenberg project is required to resolve this issue.
Triaged
To be used when issues have been triaged.
[Type] Bug
Core issue: WordPress/gutenberg#50610
Quick summary
If you set up a Cover block with a Row Block set to Space Between Items within it, the row block's space is removed if you set the Cover block to a custom content position, such as
Top Center
orBottom Center
.Steps to reproduce
Setup should look like this:
What you expected to happen
The space between items to remain intact no matter the content placement.
What actually happened
When the Cover Block > Content Position is changed, the blocks within the row block return to right next to each other.
itPxLm.mp4
Atomic
Simple
I compared the 2 cover blocks in the browser inspector, and it appears this is the problem:
When the cover block has a custom content position, the
width: auto
limits the width of the row block within the cover block.QaiDXV.mp4
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
Logs or notes
Workaround
This CSS helps resolve this on my Simple site:
The text was updated successfully, but these errors were encountered: