-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Fix the templates route on mobile #67547
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -26 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
…outes/templates.js as they're taken care of in #67547
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, the template editor was totally un-navigable on mobile and this fixes the issue!
I'm still seeing the Uncaught TypeError: navigate is not a function
error pop up in the console when clicking around though. Not quite sure what causes it, but I guess it can be looked at in a follow up.
Thanks again for testing @tellthemachines !
Yeah, the sidebar components lie outside of the context provider, which contains this function. More info and discussion over here: It doesn't affect functionality for mobile as far as I can tell, but the error isn't encouraging 😄 |
Co-authored-by: ramonjd <[email protected]> Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: ramonjd <[email protected]> Co-authored-by: tellthemachines <[email protected]>
What?
Follow up to #67467
Similar to #67467, template routes do not work on mobile view
Why?
Fixes a regression.
Testing Instructions
1- Open the site editor on mobile view (narrow width)
2- Click "Templates"
You should see the grid of templates.
Screenshots or screencast
Before
Kapture.2024-12-04.at.11.13.36.mp4
After
Kapture.2024-12-04.at.11.15.09.mp4