Skip to content

Site Editor: Unwanted top margin added to the first block inside flow layout container #62148

Closed
@iamtakashi

Description

Description

This must have been introduced recently. It only happens when the Gutenberg plugin is activated and seems to happen only in the site editor.

Usually, when the layout is constrained, the top margin is removed from the first block in a container.

CleanShot 2024-05-30 at 16 03 19@2x

However, if the container has the flow layout, the top margin doesn't get removed.

CleanShot 2024-05-30 at 16 06 51@2x

Step-by-step reproduction instructions

  1. Open the site editor
  2. Add a group block
  3. Add a block in the group block
  4. Set the layout of the group block to flow(unconstrained).
  5. See the gap between the container and the first block in it.

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.5.3
  • Gutenberg trunk

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

Activity

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

Metadata

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions