Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block toolbar overlaps the first block when creating a pattern or template part #62218

Closed
talldan opened this issue Jun 3, 2024 · 2 comments
Closed
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Bug An existing feature does not function as intended

Comments

@talldan
Copy link
Contributor

talldan commented Jun 3, 2024

Step-by-step reproduction instructions

Site editor

  1. Select Appearance > Edit Site
  2. Go to the Patterns page
  3. Click 'Add New Pattern' and choose a pattern or template part
  4. Name the pattern or template part and create it
  5. Type some text in the first block, then move your mouse and observe that the toolbar overlaps the block, making editing difficult

Post editor

  1. Add a paragraph and type some text
  2. From the block options menu select 'Create Pattern'
  3. Name and create the pattern
  4. When the pattern is inserted select the 'Edit Original' option form the block toolbar
  5. Select the first block and observe that the toolbar overlaps the paragraph

Screenshots, screen recording, code snippet

Screenshot 2024-06-03 at 2 15 41 pm

Environment info

  • WordPress and Gutenberg trunk
  • Brave browser

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

@talldan talldan added [Type] Bug An existing feature does not function as intended [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Jun 3, 2024
@talldan
Copy link
Contributor Author

talldan commented Jun 3, 2024

A possible fix here is to increase the padding around the canvas, but it looks unusual in practice:
Screenshot 2024-06-03 at 2 21 13 pm

When there's more content, the toolbar flips below the first block, so I think it should also do this when there's one block:
Screenshot 2024-06-03 at 2 23 51 pm

@talldan
Copy link
Contributor Author

talldan commented Aug 1, 2024

Fixed by #64143

@talldan talldan closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant