-
Notifications
You must be signed in to change notification settings - Fork 729
fix: diff scrolling on a commit preview #11499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR attempts to fix diff scrolling behavior in the commit preview by adding overflow: hidden to the .dropzone-container CSS class in Dropzone.svelte. The change aims to prevent incorrect or blocked scrolling when viewing commit diffs.
Key Changes
- Added
overflow: hiddento.dropzone-containerCSS class in Dropzone component
7a3c4bf to
274c7cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| overlay?: Snippet<[{ hovered: boolean; activated: boolean; handler?: DropzoneHandler }]>; | ||
| children?: Snippet; | ||
| overflow?: boolean; | ||
| } |
Copilot
AI
Dec 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overflow prop is still being used by WorktreeChanges.svelte (line 116) and passed from UnassignedView.svelte (line 119). Removing this prop will break the functionality in those components.
To properly implement this fix, you should also:
- Remove the
overflowprop fromWorktreeChanges.svelteinterface (line 30) and props destructuring (line 44) - Remove the
overflowprop being passed fromUnassignedView.svelte(line 119)
d67d936 to
e534028
Compare
e534028 to
6ca5a4a
Compare
Fix the issue of being unable to scroll on the commit preview. I’ve added
overflow: hiddenand an optional thing (hopefully this won’t break anything).Before (I'm trying to scroll there):
Screen.Recording.2025-12-09.at.11.19.32.mov
After:
Screen.Recording.2025-12-09.at.11.19.55.mov