Skip to content

Allow scrolling when the dialog exceeds screen height#3850

Merged
pumfleet merged 1 commit intomainfrom
bugfix/overflow-dialog
Aug 15, 2022
Merged

Allow scrolling when the dialog exceeds screen height#3850
pumfleet merged 1 commit intomainfrom
bugfix/overflow-dialog

Conversation

@emrysal
Copy link
Copy Markdown
Contributor

@emrysal emrysal commented Aug 14, 2022

What does this PR do?

Currently when we have a screen height that is not enough to for the dialog to fully display, there is no scroll behaviour. This introduces that, it has a padding of py-4 to maintain a little offset from the top.

Main difference - overflow now wraps content, rather than them being separated.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ❌ Failed (Inspect) Aug 14, 2022 at 8:35PM (UTC)
1 Ignored Deployment
Name Status Preview Updated
swagger ⬜️ Ignored (Inspect) Aug 14, 2022 at 8:35PM (UTC)

/>

<DialogContent className="overflow-y-auto">
<DialogContent>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't work before; but it did break the new scroll behaviour so for this reason I've edited this.

Copy link
Copy Markdown
Member

@sean-brydon sean-brydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

Copy link
Copy Markdown
Contributor

@pumfleet pumfleet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me

@pumfleet pumfleet enabled auto-merge (squash) August 15, 2022 16:12
@pumfleet pumfleet added the ♻️ autoupdate tells kodiak to keep this branch up-to-date label Aug 15, 2022
@pumfleet pumfleet merged commit 358d733 into main Aug 15, 2022
@pumfleet pumfleet deleted the bugfix/overflow-dialog branch August 15, 2022 16:23
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ autoupdate tells kodiak to keep this branch up-to-date core area: core, team members only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants