fix(app): style native scrollbars to match the theme#2473
Open
magic-peach wants to merge 1 commit into
Open
Conversation
The app showed the raw OS scrollbar — square, flat, and jarring against the app design, especially in long conversations. Style the WebKit scrollbar globally: 8px wide, pill-shaped thumb, transparent track, subtle inset border for depth. The thumb uses the slate alpha tokens, which flip with the theme, so it reads as a translucent gray on both light and dark surfaces. Custom ScrollArea components and no-scrollbar opt-outs are unaffected. Fixes different-ai#2444
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@magic-peach is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #2444
The desktop app currently renders the raw OS scrollbar — square corners, flat, visually out of place against the app design, most noticeably in long conversations and thinking sections.
This adds global WebKit scrollbar styling in
apps/app/src/app/index.css, matching the spec in the issue:border-radius: 9999px) with a subtle inset border for depth--slate-a6,--slate-a8on hover), which the palette flips per theme — so it's a translucent dark gray on light surfaces and a translucent light gray on dark surfaces, rather than the issue's hardcodedrgba(255,255,255,…)which would only suit dark modeRadix
ScrollAreacomponents draw their own scrollbars andno-scrollbaropt-outs hide theirs entirely; neither is affected by these rules.Testing
pnpm build— clean; verified all five::-webkit-scrollbar*rules are present in the emitted CSS bundlebun test tests/— 110 pass, 0 failCould not capture a recording in this environment; the quickest manual check is opening any long conversation and comparing the scrollbar in both themes.