-
Notifications
You must be signed in to change notification settings - Fork 167
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
Alignment of images left or right next to text blocks #39
Comments
I have the same issue. Editor viewFrontend view@jasmussen, I think it might be related to your recent changes to floats in the editor. Any hints how to fix it in the theme? I'm happy to open PR. I think it is caused by the included which is a quite different when you compare with the editor: |
jasmussen
pushed a commit
that referenced
this issue
Mar 7, 2018
Starts work at #39. This PR makes floats work in Gutenberg Starter Theme, right alongside wide and fullwide images. Captions work too. However due to the addition of the inline max-width style added by Gutenberg, this PR features an !important modifier. We should strive to make changes to Gutenberg upstream, so that this is not necesary. While potentially we could find a different way to combine floats with wide and fullwide images (see https://themeshaper.com/2018/02/15/styling-themes-for-gutenberg/), the method used in this PR (based on https://codepen.io/joen/pen/oEYVXB?editors=1100) is fairly elegant in that (aside from captions) reduces complexity and the need to hide horizontal scrollbars occurring from the vw unit.
Merged
karmatosed
pushed a commit
that referenced
this issue
Mar 7, 2018
Starts work at #39. This PR makes floats work in Gutenberg Starter Theme, right alongside wide and fullwide images. Captions work too. However due to the addition of the inline max-width style added by Gutenberg, this PR features an !important modifier. We should strive to make changes to Gutenberg upstream, so that this is not necesary. While potentially we could find a different way to combine floats with wide and fullwide images (see https://themeshaper.com/2018/02/15/styling-themes-for-gutenberg/), the method used in this PR (based on https://codepen.io/joen/pen/oEYVXB?editors=1100) is fairly elegant in that (aside from captions) reduces complexity and the need to hide horizontal scrollbars occurring from the vw unit.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Up till today, adding an image and setting it's alignment (Left, Right, Center, None) would cause the text to wrap around as expected.
Adding the alignment to an image block next to a text block does not work as expected.
More info in the comment section of this post:
https://themeshaper.com/2018/02/15/styling-themes-for-gutenberg/comment-page-1/#comment-170699
Dan
The text was updated successfully, but these errors were encountered: