-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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 safari nav header vertically misaligned #254
Comments
@chenglou Interesting. I cannot reproduce Chrome Developer Tools, but I see it on my phone. :/ |
I'd like to work on this. |
Just tried with my phone. Looks good now, with icon. Maybe the misalignment was from empty icon |
@chenglou - are you still seeing the issue? |
I can still see it. Not in chrome inspector, but in safari's inspector (Develop -> Responsive Design Mode) |
Now I see it. It can be reproduced in Chrome as well, but not on phone. Basically screen width need to be pretty small ( < 376px ) to make the icon go away then we can see the misalignment. The CSS on navigation is kind of complicated. Luckily seems found a good fix. I was going to make a PR but noticed there are differences between bucklescript.github.io and current example, in HTML and CSS. So no PR needed. For bucklescript.github.io, just modify
The padding was '0 20px', just change it to '0 10px' |
Thanks for diagnosing this! Ideally the custom.css file in ReasonReact and BuckleScript can completely disappear (we do have site-specific css file, but the custom.css are downstream fixes). So I think a PR to fix this in docusaurus is valuable. It also happens to the docusaurus website itself |
Docusaurus site look fine on my Safari, not as misaligned as in BuckleScript I see BuckleScript and Docusaurus sites had already diverged on HTML and CSS. I assume new websites wouldn't have the problem. Also, I just realized I was trying to fix the alignment between BuckleScript and Docs, actually not the issue stated here :p Maybe you can try to get latest docusaurus layout and see if problem still remains. |
Since the height is different on Chrome than Safari, I think fixing an absolute value of a CSS property isn't the answer. There is some underlying difference in how Safari is rendering the search box relative to the top vs. Chrome. We need to figure out why that is. |
I assume this issue still exists, but would love if someone can confirm it. |
Still is for docusaurus.io |
cc @html5cat |
Some preliminary findings - |
Is this still happening ? Don't have an iOS devices 😢 |
Yes. There's also a 1 px gap between the nav bars now: |
@ahmadalfy still working on it ? 😉 Edit: If anyone wanted to send a PR. Feel free to do so ! :) |
See the vertical alignment for the word BuckleScript vs the search
The text was updated successfully, but these errors were encountered: