Skip to content
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: Wide width and full width are not applied correctly #53173

Closed
t-hamano opened this issue Jul 31, 2023 · 3 comments · Fixed by #53184
Closed

Image Block: Wide width and full width are not applied correctly #53173

t-hamano opened this issue Jul 31, 2023 · 3 comments · Fixed by #53184
Assignees
Labels
[Block] Image Affects the Image Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@t-hamano
Copy link
Contributor

Description

In WordPress 6.3, if you set the image block to wide or full width, the image will not spread properly in the editor.

This problem occurs even with the latest Gutenberg plugin enabled. Also, it seems to occur when the original size of the image is smaller than the content width; I checked the difference with WordPress 6.2, and it may be due to the width:inherit being applied in this line.

Step-by-step reproduction instructions

  • Add an image block
  • Apply Wide Width or Full Width

Screenshots, screen recording, code snippet

d049ba4cad61b27c371ab9b85cf86cc4.mp4

Environment info

No response

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

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Image Affects the Image Block labels Jul 31, 2023
@Mamaduka
Copy link
Member

The #52286 introduced changes to the Image block markup.

@t-hamano
Copy link
Contributor Author

Another thing I noticed, if Wide Width or Full Width is applied, it would be better to hide all but the Resolution control as before.

WP 6.2

image_wp6 2

WP6.3

image_wp6 3

@t-hamano
Copy link
Contributor Author

I will add this to the Editor Task as I believe this issue is a regression that occurred in WP6.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants