Open oliviertassinari opened 3 years ago
4.0.0
.I am facing this issue, but don't want to fully override FilterPanel
in order to adjust some simple styling.
I am overriding styles in createTheme
to prevent the page overflow, and instead let the popover scroll horizontally:
const theme = createTheme({
...
overrides: {
MuiGridPanel: {
root: {
marginLeft: 8,
},
paper: {
maxWidth: '99vw',
overflowX: 'auto',
},
},
...
});
This obviously applies to all MuiGridPanel
instances, which is my main concern with the solution, but I have yet to find any negative side effects.
Note: The left-margin isn't necessary, but works nicely to somewhat center the popover on small screens.
@oliviertassinari would a scrolling popover be considered viable for a mobile solution?
Current Behavior π―
Expected Behavior π€
Steps to Reproduce πΉ
Steps:
Your Environment π
@material-ui/data-grid@v4.0.0-alpha.17