fix(diff): add horizontal scrolling for long lines - #53
Open
ChrisLauinger77 wants to merge 2 commits into
Open
ChrisLauinger77 wants to merge 2 commits into
ChrisLauinger77 wants to merge 2 commits into
Conversation
This branch has not been deployed
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.
What & why
Long lines in unwrapped diffs could only be reached using horizontal trackpad gestures. Add a horizontal scrollbar that stays at the bottom of the viewport while scrolling vertically, plus Shift+mouse-wheel support. Working-copy changes and code diffs opened from selected commits use this same viewer. Inline and side-by-side views share the same pan controller, so split panes remain aligned and search jumps keep the scrollbar synchronized. Arrow keys operate the focused scrollbar without triggering diff navigation; wrapping removes the scrollbar.
Validation: desktop TypeScript check, all 227 unit tests, and four Chromium browser tests passed. Browser coverage includes the new scrollbar/Shift+wheel regression, horizontal scrolling in a selected commit's inline and split code diffs, first-change auto-jump, and selection/copy while scrolling. Checks used the installed binaries directly because the pnpm wrapper attempted to install dependencies in an unwritable store. Native WebKitGTK has not been checked.
Screenshots
Checklist
CLAUDE.mdupdated with scrollbar behavior and test count