Skip to content

fix: show scrollbar on hover in diff viewer#1610

Open
reverb256 wants to merge 2 commits intoPostHog:mainfrom
reverb256:fix/1583-scrollbar-hover
Open

fix: show scrollbar on hover in diff viewer#1610
reverb256 wants to merge 2 commits intoPostHog:mainfrom
reverb256:fix/1583-scrollbar-hover

Conversation

@reverb256
Copy link
Copy Markdown
Contributor

Problem

The diff viewer has no visible scrollbar, making it hard to navigate large diffs. As discussed in #1583, the scrollbar was intentionally hidden to avoid visual clutter from multiple scrollbars.

Solution

Replace scrollbar-hide with a new scrollbar-overlay-y CSS class that:

  • Hides the scrollbar by default (clean look preserved ✅)
  • Reveals a subtle 6px scrollbar on hover (scroll affordance ✅)
  • Darkens the thumb on thumb-hover for precision

This mirrors the existing scrollbar-overlay class (horizontal) but for vertical scrolling, using the same color tokens (--gray-a6 / --gray-a8).

Files changed

  • ReviewShell.tsx — swap scrollbar-hidescrollbar-overlay-y
  • globals.css — add scrollbar-overlay-y utility class (follows scrollbar-overlay pattern)

Fixes #1583

Replace scrollbar-hide with scrollbar-overlay-y class that hides
the scrollbar by default and reveals it on hover. This preserves
the clean look adboio wanted while giving users scroll affordance.

Follows the existing scrollbar-overlay (horizontal) pattern with
matching color tokens (gray-a6/gray-a8).

Fixes PostHog#1583
@reverb256
Copy link
Copy Markdown
Contributor Author

Visual Evidence

Before → After: Scrollbar appears on hover in diff viewer

PR #1610 visual evidence

Replaces scrollbar-hide with a new scrollbar-overlay-y CSS class. Scrollbar is hidden by default (clean look) and reveals a subtle 6px scrollbar on hover.

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.

Missing scrollbar in new diff viewer

1 participant