rgarcia / dochub

speedy docs
http://dochub.io/
Do What The F*ck You Want To Public License
795 stars 107 forks source link

Condense search window when there are fewer results #25

Open kevinburke opened 12 years ago

kevinburke commented 12 years ago

Currently the search window in condensed view (narrower than 700px or so) takes up the entire height of the page, making it very difficult to scroll past as scrollbars are nested inside of each other. By changing the height to maxHeight, the search window will only take up the full page if there is more than a full page of search results. As the user filters the search options, the search window will shrink as well, displaying the results "above the fold".

Screenshot: https://skitch.com/kburke/en32p/dochub-instant-documentation-search

kevinburke commented 12 years ago

FYI: this also condenses the window in the full page view:

https://skitch.com/kburke/en33e/dochub-instant-documentation-search

Not sure how to get around that besides doing a check for the window size, or adding a media query.

kevinburke commented 12 years ago

This seems to also affect the menu dropdown in the black bar in condensed view, so it needs more work.