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

Viewing backend <-> frontend. Image too close to another image. #11448

Closed
paaljoachim opened this issue Nov 3, 2018 · 3 comments
Closed

Viewing backend <-> frontend. Image too close to another image. #11448

paaljoachim opened this issue Nov 3, 2018 · 3 comments
Labels
[Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Comments

@paaljoachim
Copy link
Contributor

paaljoachim commented Nov 3, 2018

Describe the bug
Here is the backend of the page that I am creating:

screen shot 2018-11-03 at 13 21 13

Here is the frontend:

screen shot 2018-11-03 at 13 21 48

Even though I added a block with an image in it below the Polly Higgins image. The second image is nudging it self upward to the empty area that was beside the Polly image and just below the text. So it gets pulled together.

To Reproduce
Steps to reproduce the behavior:

  1. Add an image. Then add some text.
  2. Align image to the left. Then align text to the left.

screen shot 2018-11-03 at 13 26 01

  1. Go into the text box and click enter a few times to move below the image.
  2. Add something there. I added an audio block. One can also add another image.
  3. Save and view the page. See if the image/audio etc has moved upward to just below the existing text to the right of the image.

Expected behavior
I expected to see the second image below the Polly Higgins image. Not up beside it.

Btw I went ahead and added a spacer block to push the image further down. So that it does not sit up to the Polly image.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: OSX 10.13.6
  • Browser Chrome and Desktop Server
  • Gutenberg version 4.1.1

Additional context
In relation to alignment of text and image: #11445

@ocean90 ocean90 added the [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. label Nov 3, 2018
@youknowriad
Copy link
Contributor

Thanks for the report.

I don't see any issue from the screenshots, that's just how float positionning works . If there's enough place, you image or any other block will show up next to the floated item. The difference is that the available width in the frontend and the backend is not the same (The theme editor styles could align the widths).

I suggest adding a custom className to your second image and apply

.my-image {
   clear: both;
}

@youknowriad
Copy link
Contributor

Closing, let me know if you need more help.

@paaljoachim
Copy link
Contributor Author

Thanks Riad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Projects
None yet
Development

No branches or pull requests

3 participants