WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.47k stars 4.18k forks source link

Blocks and Patterns selector panel width flickers #41794

Open amjadr360 opened 2 years ago

amjadr360 commented 2 years ago

What problem does this address?

Switching Blocks and Patterns tabs back and forth selector panel, panel inner elements (search bar, patterns list ) width flickers. The width flickering issue is due to the scrollbar.

Screenshots:

Blocks and Patterns selector panel width flicker

What is your proposed solution?

Solution 1: Set the max width to block-editor-insertercontent. .block-editor-insertercontent {max-width: 333px;}

The result can be achieved with solution 1: Blocks and Patterns selector panel width flicker2

Solution 2: Make selector panel overflow-y: scroll; rather then overflow-y: auto; .block-editor-inserter__main-area { overflow-y: scroll;}

The result can be achieved with solution 2: Blocks and Patterns selector panel width flicker 3

annezazu commented 2 years ago

@amjadr360 can you share version of WordPress and/or Gutenberg you're using along with what browser? Thanks so much!

amjadr360 commented 2 years ago

WordPress: Version 6.0 Gutenberg: Version 13.4.0 Twenty Twenty-Two: Version: 1.2 Browser: Chrome

annezazu commented 2 years ago

Thank you!

stokesman commented 3 weeks ago

Seems like this is outdated as the patterns list is now in its own adjacent container. Though perhaps in the mobile view it could still be an issue. Testing that on trunk is currently hindered due a separate issue #65837