gutenberg
gutenberg copied to clipboard
Avatar Block Exceeds Editor Width When 'Link to User Profile' Option is Enabled
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
- Open the WordPress block editor (Gutenberg)
- Add a new Avatar block to the editor
- In the block settings sidebar, locate and enable the 'Link to User Profile' option
- Observe that the Avatar block extends beyond the editor's maximum width
- Preview or view the page on the frontend to confirm the Avatar displays correctly there
Screenshots, screen recording, code snippet
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
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.