You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you manually set the width of an image, the size is unexpectedly reset to a minimum size after clicking on the image in the editor. I expected the width of the image to respect the value I entered into the width field.
Additionally, when you resize an image below a certain threshold, the image container does not scale down with the image size, thus displaying incorrectly in the editor.
Step-by-step reproduction instructions
Create a Grid with nested Stack blocks, with images in each Stack. (or use provided snippet)
Try to resize the 260x40 image to 80px width using the Width input in the sidebar.
Notice how the image frame is bigger than the image.
Click the image once to select it, then again with the bottom resize handle visible.
Notice how the image size is increased, even though I didn't drag the handle to resize the image.
I expected the image to retain the 80px width that I set.
Also notice that when you click on the bottom resize handle of any other image, the size changes from auto to a numeric value. I would expect the size to remain auto.
Screenshots, screen recording, code snippet
CleanShot.2025-01-21.at.11.12.47.mp4Snippet for testing
I suspect that there is a minimum size for the image to display the resize handles, but it creates an issue when you want to resize the image below the minimum size for the handles.
Also, in the mobile view, the image does not render correctly. It renders correctly on the front end. Notice how the image is breaking out of its container.
Description
When you manually set the width of an image, the size is unexpectedly reset to a minimum size after clicking on the image in the editor. I expected the width of the image to respect the value I entered into the width field.
Additionally, when you resize an image below a certain threshold, the image container does not scale down with the image size, thus displaying incorrectly in the editor.
Step-by-step reproduction instructions
I expected the image to retain the 80px width that I set.
Also notice that when you click on the bottom resize handle of any other image, the size changes from auto to a numeric value. I would expect the size to remain auto.
Screenshots, screen recording, code snippet
CleanShot.2025-01-21.at.11.12.47.mp4
Snippet for testing
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: