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

Website: Wrong Margin for the BlockImage #5299

Closed
cyan33 opened this issue Jan 13, 2018 · 15 comments · Fixed by facebook/docusaurus#398 or #5587
Closed

Website: Wrong Margin for the BlockImage #5299

cyan33 opened this issue Jan 13, 2018 · 15 comments · Fixed by facebook/docusaurus#398 or #5587

Comments

@cyan33
Copy link

cyan33 commented Jan 13, 2018

Do you want to request a feature or report a bug?
bug

What is the current behavior?
In the jest website:

Whenever the text is on the right side of the block image, it gets the correct margin in between.(margin-right):

image

But it seems that the block-image component is only getting a margin-right. So when the text is on the left side, the margin is of no use (tho it seems not that obvious to the users):

image

But this one is obvious:

image

where there is no margin in between.

I'm happy to take the issue and fix this once it is recognized. 😄

@thymikee
Copy link
Collaborator

You're right. Happy to review the PR fixing these!

@SimenB
Copy link
Member

SimenB commented Jan 13, 2018

@thymikee
Copy link
Collaborator

Ideally we could fix this upstream, yea

@cyan33
Copy link
Author

cyan33 commented Jan 13, 2018

Thanks @SimenB @thymikee . I submitted a new issue in the Docusaurus project and hopefully I could fix that issue in a few days once that's recognized.

Will update here if that gets fixed. Thanks

@SimenB
Copy link
Member

SimenB commented Jan 15, 2018

Fixed in #5321, /cc @orta (for upstream)

@SimenB SimenB closed this as completed Jan 15, 2018
@cyan33
Copy link
Author

cyan33 commented Jan 15, 2018

Actually I don't think #5321 necessarily solves the addressed problem. @SimenB

@SimenB
Copy link
Member

SimenB commented Jan 15, 2018

Oh? It fixes the video, but maybe your fix is a more generic one? (happy to reopen)

@cyan33
Copy link
Author

cyan33 commented Jan 15, 2018

Emm..It fixes the video, but doesn't fix the problem where when image is aligned right, there is no corresponding margin added in between the text and the image. See below:

image

Anyway, I think it's an issue related to the upstream repo, docusaurus.

A PR is here concerning that issue: facebook/docusaurus#398 (comment)

Maybe have these two combined. 😄

@SimenB
Copy link
Member

SimenB commented Jan 15, 2018

Ah, OK. Let's keep this open then, we might be able to drop a bit of the custom CSS whenever it's released upstream.

@SimenB
Copy link
Member

SimenB commented Jan 18, 2018

Reopening until we upgrade and potentially remove some of the css added in #5321.

@SimenB SimenB reopened this Jan 18, 2018
@JoelMarcey
Copy link
Contributor

Hi @SimenB! I will announce on the @Docusaurus twitter feed when 1.0.6 goes out. I might release that in the next week or so, depending on the amount of fixes we have.

@cyan33
Copy link
Author

cyan33 commented Jan 18, 2018

I could then do the customized CSS changes @SimenB mentioned 👍

@JoelMarcey
Copy link
Contributor

@SimenB Docusaurus 1.0.6 went out earlier this week, with this fix in it.

@thymikee
Copy link
Collaborator

thymikee commented Feb 16, 2018

@JoelMarcey we've just upgraded 😄 Thank you!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants