dochub icon indicating copy to clipboard operation
dochub copied to clipboard

Condense search window when there are fewer results

Open kevinburke opened this issue 12 years ago • 2 comments

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 avatar Jun 24 '12 17:06 kevinburke

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 avatar Jun 24 '12 17:06 kevinburke

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

kevinburke avatar Jun 24 '12 17:06 kevinburke