Skip to content

fix: Close button not working when import modal is too long - #9822

Merged
arpit-bruno merged 1 commit into
usebruno:mainfrom
sachin-bruno:sachin-bruno/import-modal-close-icon-fix
Nov 12, 2026
Merged

arpit-bruno merged 1 commit into
usebruno:mainfrom
sachin-bruno:sachin-bruno/import-modal-close-icon-fix

Conversation

@sachin-bruno

@sachin-bruno sachin-bruno commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have tested these changes locally and confirmed they work as expected.
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

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

  • Bug Fixes
    • Improved window dragging behavior around modal cards.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The modal card now sets -webkit-app-region: no-drag.

Changes

Modal drag behavior

Layer / File(s) Summary
Set modal card drag region
packages/bruno-app/src/components/Modal/StyledWrapper.js
The modal card style sets -webkit-app-region: no-drag.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested labels: size/XS

Suggested reviewers: helloanoop

Merge Risk: Minimal · up to 0b499

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: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the main change: restoring the import modal close button when the modal exceeds the window height.
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed 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.

Share

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 60d7517 and 0b499f1.

Files selected for processing: 1

  • packages/bruno-app/src/components/Modal/StyledWrapper.js

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@arpit-bruno
arpit-bruno merged commit 386e322 into usebruno:main Nov 12, 2026
15 of 19 checks passed
aparna-bruno pushed a commit to aparna-bruno/bruno that referenced this pull request Nov 20, 2026
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