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

Double Scrollbars Appear and Layout Breaks in Block Inserter When Searching for Blocks in Gutenberg #66161

Closed
2 tasks done
dhruvang21 opened this issue Oct 16, 2024 · 2 comments · Fixed by #66229
Closed
2 tasks done
Assignees
Labels
[Package] Interface /packages/interface [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@dhruvang21
Copy link
Contributor

Description

When searching for blocks in the block inserter within the Gutenberg editor, the layout breaks, and multiple double scrollbars appear. This issue significantly affects the user experience by making it difficult to navigate and select blocks, while also distorting the page layout.

Step-by-step reproduction instructions

  1. Open the Gutenberg editor in the latest trunk branch.
  2. Click on the block inserter tab to open it.
  3. Type any search term in the block search bar (for example, "a").
  4. Observe that multiple scrollbars appear on the screen, and the entire layout shifts awkwardly.

Screenshots, screen recording, code snippet

Search-issue.mp4

Environment info

  • Gutenberg trunk branch
  • Operating System:- ubuntu
  • Browser: chrome

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
@dhruvang21 dhruvang21 added the [Type] Bug An existing feature does not function as intended label Oct 16, 2024
@t-hamano
Copy link
Contributor

Thanks for the report.

This issue seems to occur when the browser height is low:

f040cd5443c4142f8fc3c91e4355a309.mp4

Also, this issue does not occur in WordPress 6.6.2, but does occur in WordPress 6.7 Beta 3 and the latest Gutenberg.

So I will add this to my project board.

@colorful-tones
Copy link
Member

I took a pass at a fix for this: #66176 , but it could use some cross-browser testing and different screen sizes as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Interface /packages/interface [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants