Skip to content

Commit

Permalink
[DataGrid] Limit panel width to not exceed screen width (#12799)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Apr 17, 2024
1 parent f8fb68e commit 23f912d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/x-data-grid/src/components/panel/GridPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const GridPaperRoot = styled(Paper, {
minWidth: 300,
maxHeight: 450,
display: 'flex',
maxWidth: `calc(100vw - ${theme.spacing(0.5)})`,
overflow: 'auto',
}));

const GridPanel = React.forwardRef<HTMLDivElement, GridPanelProps>((props, ref) => {
Expand Down

0 comments on commit 23f912d

Please sign in to comment.