-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Filter panel breaks layout on small display #5183
Comments
A workaround could be to limit the width of the panel: componentsProps={{ filterPanel: { sx: { maxWidth: "100vw" } } }} https://codesandbox.io/s/datagriddemo-demo-mui-x-forked-4t90kx?file=/demo.tsx I don't see a good behavior for the filter panel on small screen |
@alexfauquette Thanks for the workaround, this'll get me unstuck at least in the near-term. I agree that the current panel layout won't gracefully perform on a smaller screen, and it'd likely need to be reflowed in a more vertical-centric way in order to improve UX. Thanks 👍 |
I think that could be a good topic to discuss with @gerdadesign |
Should these elements stack vertically past a certain breakpoint? (Do we have existing breakpoints already defined?) |
Mo, for now, the sizes are fixed except for the "value" input which can be customized by dev. The filter panel itself only have a min width |
Surprised to see this is still an issue in version 6. My work around as it effects all DataGrids is to update the theme
|
We can adopt this workaround in the data grid since it's better than the current behavior anyway 👍 |
@bruceharrison1984: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Duplicates
Latest version
Current behavior 😯
Opening the filter panel on a small display breaks the layout on the X axis.
Expected behavior 🤔
I'd expect the filter panel to honor the page layout and not break out beyond the expected page bounds.
Steps to reproduce 🕹
Steps:
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: