Skip to content

fix: allow add data, metrics view, and connector modals to scroll#9201

Merged
royendo merged 5 commits intomainfrom
royendo/fix-modal-scroll-overflow
Apr 9, 2026
Merged

fix: allow add data, metrics view, and connector modals to scroll#9201
royendo merged 5 commits intomainfrom
royendo/fix-modal-scroll-overflow

Conversation

@royendo
Copy link
Copy Markdown
Contributor

@royendo royendo commented Apr 8, 2026

  • Add max-h-[90vh] overflow-y-auto to AddDataModal, CreateExploreDialog, and AddAiConnectorDialog
  • Replace overflow-hidden with scrollable overflow on the sources AddDataModal
  • Also fix the cloud-side AddDataModal (add-data/AddDataModal.svelte)

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Developed in collaboration with Claude Code

royendo and others added 5 commits April 8, 2026 13:54
These modals used fixed centering with no max-height constraint,
causing content to overflow past the viewport with no way to scroll.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The middle section used `size-full` which made it 100% of the parent
height instead of taking remaining space, clipping the DatabaseExplorer.
Changed to `flex-1 min-h-0` so it fills available space and allows
inner scroll.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The form used `h-full` which ignored the ConnectorHeader above it,
overshooting available space. Changed to `flex-1 min-h-0` so it fills
remaining space. Also added `min-h-0` to the DatabaseExplorer wrapper
so it can shrink and enable inner scrolling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Made the DatabaseExplorer parent div a flex-col container and added
flex-1 min-h-0 to the DatabaseExplorer wrapper so it fills available
space and overflow-y-auto can activate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These dialogs are small enough that they won't overflow the viewport.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@royendo royendo requested a review from AdityaHegde April 8, 2026 18:09
@royendo
Copy link
Copy Markdown
Contributor Author

royendo commented Apr 9, 2026

flaky e23

@royendo royendo merged commit 8171b67 into main Apr 9, 2026
13 of 15 checks passed
@royendo royendo deleted the royendo/fix-modal-scroll-overflow branch April 9, 2026 12:18
royendo added a commit that referenced this pull request Apr 9, 2026
)

* fix: allow add data, metrics view, and connector modals to scroll

These modals used fixed centering with no max-height constraint,
causing content to overflow past the viewport with no way to scroll.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: make ImportTableForm database explorer scrollable

The middle section used `size-full` which made it 100% of the parent
height instead of taking remaining space, clipping the DatabaseExplorer.
Changed to `flex-1 min-h-0` so it fills available space and allows
inner scroll.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: properly constrain ImportTableForm height for scrolling

The form used `h-full` which ignored the ConnectorHeader above it,
overshooting available space. Changed to `flex-1 min-h-0` so it fills
remaining space. Also added `min-h-0` to the DatabaseExplorer wrapper
so it can shrink and enable inner scrolling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: complete flex chain for DatabaseExplorer scrolling

Made the DatabaseExplorer parent div a flex-col container and added
flex-1 min-h-0 to the DatabaseExplorer wrapper so it fills available
space and overflow-y-auto can activate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* revert: remove unnecessary scroll changes from small dialogs

These dialogs are small enough that they won't overflow the viewport.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants