Add auto-hide vertical scrollbar to diff pane#93
Merged
benvinegar merged 2 commits intomainfrom Mar 24, 2026
Merged
Conversation
48ee42f to
61a3cb9
Compare
- New VerticalScrollbar component with drag-to-scroll support - Auto-hide behavior: scrollbar appears on scroll activity (keyboard, mousewheel) - Hides after 2 seconds of inactivity - 1-character width using theme colors (accentMuted normal, accent when dragging) - Proportional thumb sizing based on viewport/content ratio - Only visible when content exceeds viewport height - Fixed: Set scrollStep=1 for precise 1-line scrolling with arrow keys
- Test scrollbar visibility when content exceeds viewport - Test auto-hide behavior after 2 seconds of inactivity - Test scrollbar appears on mouse scroll wheel activity - Test up/down arrow key scrolling functionality - Test scrollbar hidden when content fits in viewport
41101c4 to
ea6bd9c
Compare
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
Adds a vertical scrollbar to the diff pane with auto-hide behavior and drag-to-scroll functionality.
Features
accentMutedcolor normally,accentcolor when draggingTechnical Implementation
VerticalScrollbarcomponent insrc/ui/components/scrollbar/DiffPanewith proper absolute positioningPaneDividerpatternsTesting
Visual Preview