-
Notifications
You must be signed in to change notification settings - Fork 18
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
Layout Grid: Editor Mobile View Not Fully Responsive #152
Comments
Thanks for the report. |
It is the editor.css file |
@tjcafferkey can you link to a post where this is happening, or copy/paste some HTML here to reproduce? I've tried the grid on an iPhone and it seems to work fine. |
Hey @johngodley, here is a link to the page where it's happening, but here is the markup from the code editor perhaps you could replicate by creating a new page and importing this 26e0e-pb |
Thanks for the added info. I'm going to take a look at a patch as soon as I can. |
Alright I've taken a look, I thought the issue was with the responsive preview feature, but that appears to work as intended even though there are aspects of the layout that aren't ideal, and that there seems to be an issue with the media & text block not "stacking" as it should on mobile. That should be solved when the iframe lands. However I as able to learn this: What happens there is that the layout grid block keeps showing the desktop breakpoint, even when the viewport is sized down. Which means that you see the full 12 column grid, even on tablet and desktop breakpoints that should be 8 and 4. I can't recall if we support this, @johngodley do you recall? It would be nice to support, but I don't recall that we do. |
No, there's no explicit code to change the editor to the actual breakpoint, and if that is the cause of the problem then I guess this is working as expected. The block probably can change the editor breakpoint as the window is resized, but as this affects the entire editor it could be a little aggressive. Is this something that the core editor itself should do? |
I think this is something we can potentially optimize in the block when the iframe lands, as the iframe, I believe, is the core editors way of handling this. |
I did some investigation into this as part of this issue Automattic/wp-calypso#47293 The So I don't think it makes any sense to use |
@roo2 I'm not sure I understand. |
@johngodley by the way that But what happens is that when So I'm not sure of the correct fix, but it seems like within |
In terms of edit.js the preview device type is used to change the grid breakpoint, and so it is behaving as intended. |
ahh sorry yes, I had missed that part of the UI in the block settings 🤦♂️ that makes sense! |
I've raised #161 which is a potential solution to allow the editor to work intuitively for mobile and still support the current preview mode |
Version 1.5 has been released which includes the fixes in #161 |
There appears to be an issue in the Block Editor when viewing it on mobile where the responsive aspect of the view is broken.
After some investigation as part of Automattic/wp-calypso#42148 it appears to be caused by some styles originating from this file 26dde-pb.
I am trying to find out why these styles exist and the problem they solve, to understand if there's a way we can fix this issue without effecting the original reason for their existence.
The text was updated successfully, but these errors were encountered: