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

Anchor offset doesn't work on the mobile view #190

Closed
vjeux opened this issue Oct 26, 2017 · 1 comment
Closed

Anchor offset doesn't work on the mobile view #190

vjeux opened this issue Oct 26, 2017 · 1 comment
Assignees

Comments

@vjeux
Copy link
Contributor

vjeux commented Oct 26, 2017

In order to get #links to work correctly with the static header, we offset it by the size of the header + some free room. But the mobile view has another header, which is not taken into account. So when you click on the link, it doesn't jump to the right location.

https://github.com/facebookexperimental/Docusaurus/blob/f72df94dd33f4d92f151a78a52a4f9733ddf2991/lib/static/css/main.css#L78-L82

@hramos
Copy link
Contributor

hramos commented Oct 26, 2017

Since I'm already touching this in #164 (which I've confirmed has the same issue), I'll just fix this issue there as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants