jargons.dev icon indicating copy to clipboard operation
jargons.dev copied to clipboard

Update Search Results Overflow Scrolling

Open babblebey opened this issue 11 months ago • 1 comments

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.

image

Steps to Reproduce

  1. Go to the jargons.dev web app.
  2. Open the search functionality and do a search, observe the search results pop-up.
  3. Notice that the vertical scroll bar is always visible, even if there are no results or content to scroll.

Tasks (What to do)

  1. Locate the src/components/islands/search.jsx file.
  2. Find the Tailwind CSS class overflow-y-scroll used for the SearchResult component on line 225.
  3. Replace overflow-y-scroll with overflow-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 avatar Jan 09 '25 18:01 babblebey

@babblebey i would like to fix this issue. Assign the issue to me so i can work on it

AyendiSimeon1 avatar Jan 18 '25 14:01 AyendiSimeon1

Is this still up for grabs? @babblebey

Bridgetamana avatar Jun 25 '25 14:06 Bridgetamana

Sure @Bridgetamana .... Have at it 😁

babblebey avatar Jun 25 '25 15:06 babblebey