Skip to content

Commit

Permalink
feat: update MUIDataTable styling to include width adjustment for bet…
Browse files Browse the repository at this point in the history
…ter responsiveness

Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Nov 14, 2024
1 parent 0295e04 commit dba20be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/custom/ResponsiveDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ export const DataTableEllipsisMenu: React.FC<{
const dataTableTheme = (theme: Theme, backgroundColor?: string) =>
createTheme({
components: {
MUIDataTable: {
MuiPaper: {
styleOverrides: {
paper: {
root: {
background: backgroundColor || theme.palette.background.default,
maxWidth: '-moz-available'
maxWidth: '-moz-available',
width: '-moz-available'
}
}
},
Expand Down

0 comments on commit dba20be

Please sign in to comment.