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

Site Editor Sidebar: Header moves when scrolling through lists in mobile layout #69328

Open
2 of 6 tasks
t-hamano opened this issue Feb 26, 2025 · 4 comments
Open
2 of 6 tasks
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Mobile Web Viewport sizes for mobile and tablet devices [Type] Bug An existing feature does not function as intended

Comments

@t-hamano
Copy link
Contributor

t-hamano commented Feb 26, 2025

Description

In the mobile layout, when you scroll the list (Navigation, Pattern Category), you expect the header (site hub icon, screen title, etc.) to stay still and the description below to scroll. However, when you scroll the list, the site hub icon, screen title, etc. scroll at the same time.

This issue does not occur in WordPress 6.7.

Perhaps this issue will be resolved by #68165.

Step-by-step reproduction instructions

  • Appearance > Editor > Pattern
  • Scroll the pattern category list.

Screenshots, screen recording, code snippet

✅ WordPress 6.7

6.7.mp4

❌ Latest Gutenberg

trunk.mp4

Environment info

No response

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
@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended Mobile Web Viewport sizes for mobile and tablet devices [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Feb 26, 2025
@t-hamano t-hamano moved this to 📥 Todo in WordPress 6.8 Editor Tasks Feb 26, 2025
@Mayank-Tripathi32
Copy link
Contributor

I will try running git bisect to identify where the regression occurred.

@t-hamano
Copy link
Contributor Author

Thanks for taking an interest in this issue. My guess is that #67199 might be related. You might want to check out the commits around that one.

@Mayank-Tripathi32
Copy link
Contributor

Thanks for taking an interest in this issue. My guess is that #67199 might be related. You might want to check out the commits around that one.

Tried but kept running into problems with running project.

[0] [webpack-cli] Failed to load '/Users/lib/Projects/gutenberg/gutenberg/webpack.config.js' config
[0] [webpack-cli] Error: Cannot find module '@wordpress/upload-media/package.json'

Tried using npm i between each commit but didn't work.

@t-hamano
Copy link
Contributor Author

@Mayank-Tripathi32 Try deleting the packages/upload-media directory. The presence of that directory can cause build errors when moving from a newer commit to an older one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Mobile Web Viewport sizes for mobile and tablet devices [Type] Bug An existing feature does not function as intended
Projects
Development

No branches or pull requests

2 participants