Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/core] ScrollAreaAutosize: fix overflow #5481

Merged
merged 1 commit into from Jan 3, 2024

Conversation

ayovev
Copy link
Contributor

@ayovev ayovev commented Dec 26, 2023

While using the ScrollAreaAutosize component I noticed that when used in conjunction with the Table component the data would overflow out of the viewport, particularly on smaller screen widths and mobile devices (screenshot 1 and 2).

Screenshot 1 (Issue)
Screenshot 2023-12-26 at 14 08 01

Screenshot 2 (Issue)
Screenshot 2023-12-26 at 14 08 13

I was able to fix this by adding overflow: auto to the style prop of the ScrollAreaAutosize component which renders it in the outermost parent div of the ScrollArea component (screenshot 3 and 4). I don't think this is an issue specific to my project so I'm making this update in hopes that it helps the library as a whole.

Screenshot 3 (Fix)
Screenshot 2023-12-26 at 14 12 11

Screenshot 4 (Fix)
Screenshot 2023-12-26 at 14 16 27

@ayovev ayovev marked this pull request as ready for review December 26, 2023 22:17
@rtivital rtivital merged commit 7639a31 into mantinedev:master Jan 3, 2024
1 check passed
@rtivital
Copy link
Member

rtivital commented Jan 3, 2024

Thanks!

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.

None yet

2 participants