Skip to content

Conversation

Fe4th3r
Copy link

@Fe4th3r Fe4th3r commented Jun 17, 2025

Problem:
The scrollbar displayed in the search results panel was the default system scrollbar. It did not respect the application's theme, resulting in a bright, out-of-place scrollbar when dark mode was active.

Solution:
This commit applies custom CSS styling to the search panel's scrollbar to ensure it aligns with the current UI theme (light or dark).

Implementation Details:

  • Used ::-webkit-scrollbar pseudo-elements to style the scrollbar for WebKit-based browsers (Chrome, Safari, Edge).
  • Created distinct styles for the scrollbar thumb (the handle) and track (the background).
  • Implemented dark mode variants using a :global(.dark) selector to override the default light theme colors.
  • To achieve a more refined, "floating" aesthetic, the track is made transparent, and the thumb uses a transparent border combined with background-clip: content-box to create visual spacing from the container's edge.

Copy link

vercel bot commented Jun 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuwari-yags ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 3:15am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant