Skip to content

Commit

Permalink
Merge pull request #3 from ashfaqnisar/mui5
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhmike authored Oct 15, 2021
2 parents 9b70f9c + 9d85b68 commit 30fa456
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/MUIDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const defaultTableStyles = theme => ({
// deprecated, but continuing support through v3.x
responsiveStacked: {
overflow: 'auto',
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
overflow: 'hidden',
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const defaultBodyStyles = theme => ({
textAlign: 'center',
},
lastStackedCell: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
'& td:last-child': {
borderBottom: 'none',
},
},
},
lastSimpleCell: {
[theme.breakpoints.down('xs')]: {
[theme.breakpoints.down('sm')]: {
'& td:last-child': {
borderBottom: 'none',
},
Expand Down
14 changes: 7 additions & 7 deletions src/components/TableBodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const useStyles = makeStyles(
display: 'none',
},
simpleHeader: {
[theme.breakpoints.down('xs')]: {
[theme.breakpoints.down('sm')]: {
display: 'inline-block',
fontWeight: 'bold',
width: '100%',
boxSizing: 'border-box',
},
},
simpleCell: {
[theme.breakpoints.down('xs')]: {
[theme.breakpoints.down('sm')]: {
display: 'inline-block',
width: '100%',
boxSizing: 'border-box',
Expand All @@ -28,7 +28,7 @@ const useStyles = makeStyles(
verticalAlign: 'top',
},
stackedCommon: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
display: 'inline-block',
fontSize: '16px',
height: 'auto',
Expand Down Expand Up @@ -56,7 +56,7 @@ const useStyles = makeStyles(
},
},
stackedParent: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
display: 'inline-block',
fontSize: '16px',
height: 'auto',
Expand All @@ -72,19 +72,19 @@ const useStyles = makeStyles(
boxSizing: 'border-box',
},
cellStackedSmall: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
width: '50%',
boxSizing: 'border-box',
},
},
responsiveStackedSmall: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
width: '50%',
boxSizing: 'border-box',
},
},
responsiveStackedSmallParent: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
width: '100%',
boxSizing: 'border-box',
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableBodyRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const defaultBodyRowStyles = theme => ({
},
hoverCursor: { cursor: 'pointer' },
responsiveStacked: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
borderTop: 'solid 2px rgba(0, 0, 0, 0.15)',
borderBottom: 'solid 2px rgba(0, 0, 0, 0.15)',
padding: 0,
margin: 0,
},
},
responsiveSimple: {
[theme.breakpoints.down('xs')]: {
[theme.breakpoints.down('sm')]: {
borderTop: 'solid 2px rgba(0, 0, 0, 0.15)',
borderBottom: 'solid 2px rgba(0, 0, 0, 0.15)',
padding: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableHead.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const useStyles = makeStyles(
theme => ({
main: {},
responsiveStacked: {
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
display: 'none',
},
},
responsiveStackedAlways: {
display: 'none',
},
responsiveSimple: {
[theme.breakpoints.down('xs')]: {
[theme.breakpoints.down('sm')]: {
display: 'none',
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const defaultToolbarStyles = theme => ({
marginTop: '10px',
marginRight: '8px',
},
[theme.breakpoints.down('sm')]: {
[theme.breakpoints.down('md')]: {
titleRoot: {},
titleText: {
fontSize: '16px',
Expand All @@ -82,7 +82,7 @@ export const defaultToolbarStyles = theme => ({
textAlign: 'right',
},
},
[theme.breakpoints.down('xs')]: {
[theme.breakpoints.down('sm')]: {
root: {
display: 'block',
'@media print': {
Expand Down

0 comments on commit 30fa456

Please sign in to comment.