Skip to content

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

@dhananjaykuber

Description

@dhananjaykuber

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.

  • Yes

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

  • Yes

Please confirm which theme type you used for testing.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] AvatarAffects the Avatar Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions