-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image block content overflows boundaries inside editor #36789
Comments
In looking at the editor, it appears that the I went further and attempted to manually change the width of the Below is a screen recording of how the columns respond in the editor. I colored the columns blue and the figure yellow. The figure has been expanded to 390px manually to test if the figure would overflow the container. I am dragging the column count from 1-6 and back. It seems that the flex styling of the columns is rigid. The column control would need to be adjusted to allow more flexible columns sizes. This may be a simple vs complex decision made for the UI, to avoid making this control more difficult to use. |
In my brief testing, it seems the editor's extra markup is causing the image's |
Is this the same issue as #36789? |
I've been reviewing the Image block issues, and we have 5 or 6 reports of the same problem. Let's consolidate them and close others as duplicates. |
Noting this came up in the FSE Outreach Program's Front Page Fun call for testing
|
Closing this as a duplicate of #12168 (where similar issues are being consolidated) |
Description
When wrapping an
Image
block inside a layout block (i.e.Columns
), the block contents leak the container.That only happens if you specify custom dimensions to the image. Otherwise, it will just fit the parent's width.
Should we add a toggle that allows overflowing the parent's dimensions or is this totally expected behavior?
Step-by-step reproduction instructions
Columns
block;Image
block to the first column;Check that the image overflows its container.
Screenshots, screen recording, code snippet
Environment info
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: