-
Notifications
You must be signed in to change notification settings - Fork 124
Fix many mobile issues with dartdoc #1873
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not being fluent here, I have to ask a probably obvious question... In the description, you suggest that this is a mobile-only fix but this looks more general? (That is, I'm not seeing any obvious "mobile-only" selectors.) I'm guessing it's something right in front of me I'm not seeing?
The mobile support and the small screen support is basically the same thing in dartdoc. So the selectors are on screen size (width, to be specific). I've rationalized them a bit too in this PR so it is a bit more consistent. |
Ah. That makes sense. Thanks for the clarification! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There are two small css issues to correct (although it looks like browsers already parse the css correctly).
Fixes #908, #1048, #1348, and #1469. (Some minor bits of these were obsolete before this PR, so technically this doesn't fix everything listed. But I believe this cleans up enough to address the main points of these bugs and will address other mobile issues separately.)
This PR adds a mobile-only search box to the hamburger button. Also, this puts the navigation information usually in the title bar in there directly below the search, fixing a host of problems where you can't really get around the API documentation in mobile.
Screenshots for what flutter docs hamburger button menu now looks like: