Skip to content

Conversation

@PavelLaptev
Copy link
Contributor

@PavelLaptev PavelLaptev commented Dec 9, 2025

Fix the issue of being unable to scroll on the commit preview. I’ve added overflow: hidden and 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

Copilot AI review requested due to automatic review settings December 9, 2025 10:18
@vercel
Copy link

vercel bot commented Dec 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
gitbutler-web Skipped Skipped Dec 9, 2025 10:52am

Copy link
Contributor

Copilot AI left a 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: hidden to .dropzone-container CSS class in Dropzone component

@PavelLaptev PavelLaptev force-pushed the fix-diff-scrolling-commit-preview branch from 7a3c4bf to 274c7cc Compare December 9, 2025 10:35
Copilot AI review requested due to automatic review settings December 9, 2025 10:45
Copy link
Contributor

Copilot AI left a 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;
}
Copy link

Copilot AI Dec 9, 2025

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:

  1. Remove the overflow prop from WorktreeChanges.svelte interface (line 30) and props destructuring (line 44)
  2. Remove the overflow prop being passed from UnassignedView.svelte (line 119)

Copilot uses AI. Check for mistakes.
@PavelLaptev PavelLaptev force-pushed the fix-diff-scrolling-commit-preview branch from d67d936 to e534028 Compare December 9, 2025 10:52
@PavelLaptev PavelLaptev force-pushed the fix-diff-scrolling-commit-preview branch from e534028 to 6ca5a4a Compare December 9, 2025 10:52
@PavelLaptev PavelLaptev merged commit c476c9c into master Dec 9, 2025
22 checks passed
@PavelLaptev PavelLaptev deleted the fix-diff-scrolling-commit-preview branch December 9, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants