Bug on Fixed Width
setting on Row
block's child blocks
#58236
Labels
[Block] Group
Affects the Group Block (and row, stack and grid variants)
[Feature] Layout
Layout block support, its UI controls, and style output.
Needs Testing
Needs further testing to be confirmed.
[Status] In Progress
Tracking issues with work in progress
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Bug
An existing feature does not function as intended
Uh oh!
There was an error while loading. Please reload this page.
Description
When grouping 2 or more blocks into a
Row
block (horizontal flex layout), we can set the child blocks' width into 3 modes:Fit
,Fill
, andFixed
.This issue occurred when the
Row
block has 2 child blocks:Fixed
width.Fit
orFill
, but the content inside this block is long so that it wraps into multiple lines.This will cause the 1st block to shrink and not obey the 300px
Fixed
width setting. See the screenshot below:This happens because the generated CSS for the 1st block with
Fixed
width setting is onlyflex-basis: 300px
.Additional CSS
flex-shrink: 0
is required to ensure the 1st block doesn't shrink.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Installed WordPress version: 6.4.2
This issue occurred with and without the Gutenberg plugin installed.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: