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

[DashboardLayout] Add width containment on flex container #4414

Merged
merged 5 commits into from
Nov 19, 2024

Conversation

bharatkashyap
Copy link
Member

@bharatkashyap bharatkashyap commented Nov 14, 2024

@bharatkashyap bharatkashyap added bug 🐛 Something doesn't work component: layout This is the name of the generic UI component, not the React module! labels Nov 14, 2024
@Janpot
Copy link
Member

Janpot commented Nov 18, 2024

why max width? shouldn't the container just be the width of the available space, regardless of the content?

@bharatkashyap
Copy link
Member Author

why max width? shouldn't the container just be the width of the available space, regardless of the content?

You're right, the fix works because of the min-width and not the max-width:

Screen.Recording.2024-11-18.at.8.33.46.PM.mov

Copy link
Member

@apedroferreira apedroferreira left a comment

Choose a reason for hiding this comment

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

This seems to do it. Thanks a lot, Bharat!

@bharatkashyap bharatkashyap merged commit 840e8e1 into mui:master Nov 19, 2024
14 checks passed
@alexwork1611
Copy link

Glad you guys figured it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: layout This is the name of the generic UI component, not the React module!
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

[example][pageContainer] Unable to scroll a Datagrid Responsive bug with MUI component
5 participants