Repository navigation
Diffs: the library's own scrollbar at the bottom; remove the top bar - #2763
Merged
Merged
Conversation
The owner's decision: a normal scrollbar at the bottom of each diff, the diff library's own, and the custom bar under the file name taken out. - Remove DiffHScrollbar (#1586) from the review app and the Inbox, with the Inbox's hover and finger rules for it (#2698) and its e2e tests. - Stop hiding Pierre's horizontal scrollbar. theme.css's scrollbar-color reached into Pierre's shadow root by inheritance, and Chrome then drops Pierre's ::-webkit-scrollbar sizing: a 15px classic bar its layout did not count, cut off at the file's edge. diffs-container resets it, so Pierre keeps its 6px bar and the room it counts for it. - Give the thumb a quiet visible colour in light and dark (Pierre leaves it transparent until hover). - The Inbox (a file as tall as its layout) counts Pierre's 8px under the last row, so the bar sits inside the file's box.
…le's own bar is below the screen Pierre's bar stays at the bottom of each file's code. While the file is in view and that bar is below the pane, a native scrollbar (Pierre's 6px look) pinned to the pane's bottom edge mirrors the code's sideways scroll, one per column in split view; it goes once the file's own bar is on screen. Nothing at the top.
…s; it goes once the file's last row is on screen A sticky dock at the end of the pane's content holds it, so the comments panel and menus stay over it (it was fixed in the page above the Inbox's review). It leaves once Pierre's room under the last row reaches the screen, so it never covers that row.
This was referenced Nov 6, 2026
Closed
backnotprop
added a commit
that referenced
this pull request
Nov 6, 2026
Main removed the custom top scrollbar (#2763): the PR page's hover rules for it go, and its tests check the 33 px file head alone. Flush files keep the 8 px foot main now counts for files that scroll with the page.
1 task
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 changed
DiffHScrollbar, the bar under each file's name, is removed from the browser review app (DiffViewer,AllFilesCodeView) and from the Inbox review. Its Inbox rules for hover and touch go too (Inbox review: the bar under a file's name shows on hover, or under a finger while it moves #2698:[data-diff-hscrollbar]ininbox.cssand thedata-review-file-movingeffect inReviewPane), with its e2e tests and its doc paragraph.usePierreThemeno longer hides it.theme.cssresetsscrollbar-colorondiffs-container. The app-wide* { scrollbar-color }rule leaked into Pierre's shadow root. Chrome ignores::-webkit-scrollbarstyles while that property is set, so Pierre's 6 px bar became a 15 px classic bar that Pierre's layout had no room for, and the file's box cut it off. With the reset, Pierre keeps its own bar and the space it reserves for it.scrollbar-color.DiffBottomBar). Pierre's bar stays at the end of each file. While a file is in view and its own bar is below the screen, a second bar sits at the bottom edge of the scroll pane. It is a plain native scrollbar with Pierre's look, one per column in split view.Why
The owner asked for a normal scrollbar at the bottom of each diff, using the library's built-in one, and for the top bar to be removed (the owner's approval "diff-scrollbar-bottom", 2026-11-06). Afterwards the owner chose to also pin a bar to the bottom of the screen while a wide file is in view, as GitHub does. This applies to both the review app and the Inbox.
This removes the approach from #1586, which Karrq built for #1048: a bar pinned under the file header so it stays in reach on long diffs. It is removed at the owner's request.
Checked
tests/e2e/inbox-code-review.spec.tsandinbox-guides.spec.tspass against a scratch build. New tests ininbox-code-review.spec.ts:tscerrors in review-editor or inbox.