gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Avatar Block Exceeds Editor Width When 'Link to User Profile' Option is Enabled

Open dhananjaykuber opened this issue 1 year ago • 1 comments

Description

The Avatar block in the Gutenberg editor displays incorrectly when the 'Link to User Profile' setting is enabled. The block extends beyond the editor's maximum width constraints, though it renders correctly on the frontend. This visual inconsistency affects the editing experience while working with Avatar blocks.

Step-by-step reproduction instructions

  1. Open the WordPress block editor (Gutenberg)
  2. Add a new Avatar block to the editor
  3. In the block settings sidebar, locate and enable the 'Link to User Profile' option
  4. Observe that the Avatar block extends beyond the editor's maximum width
  5. Preview or view the page on the frontend to confirm the Avatar displays correctly there

Screenshots, screen recording, code snippet

Image

Environment info

WordPress Version: 6.7.2 Gutenberg Version: 20.3.0

Please confirm that you have searched existing issues in the repo.

  • [x] Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • [x] Yes

Please confirm which theme type you used for testing.

  • [x] Block
  • [ ] Classic
  • [ ] Hybrid (e.g. classic with theme.json)
  • [ ] Not sure

dhananjaykuber avatar Feb 13 '25 09:02 dhananjaykuber

Re-tested on trunk: with "Link to user profile" enabled, the Avatar block stays within the content width in the editor, as on the front end. Closing, as I can't reproduce it. Please reopen with your theme if it still happens.

youknowriad avatar Sep 28 '26 10:09 youknowriad