jargons.dev
jargons.dev copied to clipboard
Update Search Results Overflow Scrolling
The current search results pop-up on the jargons.dev displays a vertical scroll bar even when there’s nothing to scroll. This is because the overflow-y-scroll Tailwind CSS class is used. To improve the user experience, we should change this to overflow-y-auto, which will display the scroll bar only when needed.
Steps to Reproduce
- Go to the jargons.dev web app.
- Open the search functionality and do a search, observe the search results pop-up.
- Notice that the vertical scroll bar is always visible, even if there are no results or content to scroll.
Tasks (What to do)
- Locate the
src/components/islands/search.jsxfile. - Find the Tailwind CSS class
overflow-y-scrollused for theSearchResultcomponent on line225. - Replace
overflow-y-scrollwithoverflow-y-auto.
Acceptance Criteria
- The vertical scroll bar should only appear when the content exceeds the available space.
- Test the search functionality to ensure the scroll bar behaves as expected with different amounts of content.
@babblebey i would like to fix this issue. Assign the issue to me so i can work on it
Is this still up for grabs? @babblebey
Sure @Bridgetamana .... Have at it 😁