You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Close button not working when import modal is too long - #9822
When a modal is taller than the window and scrolled up, its close icon ends up under the title bar. The title bar is a window drag area, so clicking the icon drags the window instead of closing the modal.
Fix
Excluded the modal card from the drag area with -webkit-app-region: no-drag, the same way the title bar's own buttons are. The change is in the shared Modal, so it fixes every modal that uses it.
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
This change stops the window from being dragged when the modal's close icon is clicked while it is scrolled under the title bar. It is a small, low-risk styling fix and is ready to merge.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly identifies the main change: restoring the import modal close button when the modal exceeds the window height.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A modal card rests in place Its drag region now says no One small style rule joins the flow The wrapper keeps its quiet shape A tidy change, complete and clear
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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
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.
Ref: BRU-4814
Problem
When a modal is taller than the window and scrolled up, its close icon ends up under the title bar. The title bar is a window drag area, so clicking the icon drags the window instead of closing the modal.
Fix
Excluded the modal card from the drag area with
-webkit-app-region: no-drag, the same way the title bar's own buttons are. The change is in the shared Modal, so it fixes every modal that uses it.Screenshots
Before
https://github.com/user-attachments/assets/1254642c-0516-4f13-b84d-33eb5fb54723
After
https://github.com/user-attachments/assets/1d313afb-c805-41fd-a7b6-d9fb47b660c7
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Summary by CodeRabbit