-
Notifications
You must be signed in to change notification settings - Fork 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
Mobile issues for Vesta design in editor #47293
Comments
@razvanpapadopol I'm still having a bit of trouble reproducing the issue. I followed these steps:
I created this website |
I was able to reproduce now in wp-admin of the site you've created so we know this is not user-related. Everything looks fine until the viewport is less than 560px wide. I've also updated the issue with OS / Browser / Device section. |
I investigated this and it seems that some themes use the experimental Layout Grid. Layout grid accepts a prop called "displayType: "Desktop" | "Mobile" | Tablet". It uses this prop to determine the layout. This means that the screen width isn't taken into account, rather, the display type you select when you click "Preview" button in the top right corner of the editor in Desktop mode. Since we're hiding the display type picker in mobile anyways, I think we should change the "displayType" value to "Mobile" in mobile devices. Currently, display type is fetched from the |
This issue in the Layout Grid seems to be related. Automattic/block-experiments#152 It looks like the setting that effects it is the I did notice that even when I manualy changed __experimentalGetPreviewDeviceType to Mobile, the page content of this vesta template still overflowed. So there seem to be two issues at play here. |
Aside from the columns not rendering in mobile mode, the reason that the content is pushed off the screen is actually related to the I'll raise this issue upstream in gutenberg. But for the Vesta design, why does it need a background color? the background color is set to white, which is the default background color anyway... I've made a diff to remove background color from Vesta's homepage template which fixes the theme's editor experience on Mobile. D54150-code |
I created a PR to fix this in a8c themes Automattic/themes#2909 |
This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels. |
Steps to reproduce
What I expected
What happened instead
OS / Browser / Device
The text was updated successfully, but these errors were encountered: