Skip to content

Sidebar takes up most of the width on mobile #30

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

Closed
dtolnay opened this issue Dec 23, 2016 · 0 comments
Closed

Sidebar takes up most of the width on mobile #30

dtolnay opened this issue Dec 23, 2016 · 0 comments

Comments

@dtolnay
Copy link
Member

dtolnay commented Dec 23, 2016

https://www.reddit.com/r/programming/comments/5jsetj/announcing_rust_114/dbj4gn0/

That show doesn't work very well on mobile; the sidebar takes up most of the screen by default. Perhaps it could be collapsed by default?

I think this is a consequence of the workaround for #28. Maybe a better heuristic should be:

  • If JavaScript is disabled, show sidebar.
  • If screen is narrower than some threshold, hide sidebar.
  • Otherwise show sidebar.

I don't know CSS or JavaScript so let me know if anyone has a better plan.

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

No branches or pull requests

1 participant