Skip to content

Allow Image resizing using resize handles when nested in Group block#76584

Open
Vedant-Gandhi wants to merge 1 commit intoWordPress:trunkfrom
Vedant-Gandhi:fix/image-resize-not-working-with-resize-handle
Open

Allow Image resizing using resize handles when nested in Group block#76584
Vedant-Gandhi wants to merge 1 commit intoWordPress:trunkfrom
Vedant-Gandhi:fix/image-resize-not-working-with-resize-handle

Conversation

@Vedant-Gandhi
Copy link

What?

Ref #70484

Why?

The Image Block Resize Handle do not work when group block is set to fit but the dimensions can be altered using the controls.

How?

Add logic to determine if image is shrink wrapped and prevent applying max content width.

Testing Instructions

  1. Create a dummy post.
  2. Add a Row block and inside it add a Group Block.
  3. Add an image inside group block and resize it using resize handles.

Working Demo

20260317193023126.mp4

@github-actions github-actions bot added the [Package] Block library /packages/block-library label Mar 17, 2026
@Vedant-Gandhi Vedant-Gandhi changed the title fix: image resize not working with resize handles in group fit Allow Image Resizing using Resize Handles when Nested in Group Block Mar 17, 2026
@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 17, 2026
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @Vedant-Gandhi! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@Vedant-Gandhi Vedant-Gandhi changed the title Allow Image Resizing using Resize Handles when Nested in Group Block Allow Image resizing using resize handles when nested in Group block Mar 17, 2026
@Vedant-Gandhi Vedant-Gandhi marked this pull request as ready for review March 17, 2026 14:25
@github-actions
Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: [Package] Block library, First-time Contributor.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

1 similar comment
@github-actions
Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: [Package] Block library, First-time Contributor.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Vedant-Gandhi <vedantgandhi28@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Package] Block library /packages/block-library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant