Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Search results should be scrollable #1231

@MaxGabriel

Description

@MaxGabriel

When you press s on a haddock page, you get a search box to search the package. When you have many search results, the search box overflows the page. This has two issues:

  1. You can't scroll the box, so you can't see all the search results. I have confirmed additional search results do exist by seeing there are additional DOM elements with more results
  2. The box taking up the entire page is a little awkward

To repro:

  1. Visit https://hackage.haskell.org/package/amazonka-1.6.1
  2. Press s
  3. Search "Auth" (case sensitive—auth doesn't have many results)

I think a good fix would be to add:

overflow: scroll;
max-height: 80%; 

to the #search-results div. Any max-height will do, not specifically 80%. I've tested this works by making edits in web inspector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions