Skip to content

Commit 30fa456

Browse files
authored
Merge pull request #3 from ashfaqnisar/mui5
2 parents 9b70f9c + 9d85b68 commit 30fa456

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

src/MUIDataTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const defaultTableStyles = theme => ({
5757
// deprecated, but continuing support through v3.x
5858
responsiveStacked: {
5959
overflow: 'auto',
60-
[theme.breakpoints.down('sm')]: {
60+
[theme.breakpoints.down('md')]: {
6161
overflow: 'hidden',
6262
},
6363
},

src/components/TableBody.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ const defaultBodyStyles = theme => ({
1616
textAlign: 'center',
1717
},
1818
lastStackedCell: {
19-
[theme.breakpoints.down('sm')]: {
19+
[theme.breakpoints.down('md')]: {
2020
'& td:last-child': {
2121
borderBottom: 'none',
2222
},
2323
},
2424
},
2525
lastSimpleCell: {
26-
[theme.breakpoints.down('xs')]: {
26+
[theme.breakpoints.down('sm')]: {
2727
'& td:last-child': {
2828
borderBottom: 'none',
2929
},

src/components/TableBodyCell.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const useStyles = makeStyles(
1010
display: 'none',
1111
},
1212
simpleHeader: {
13-
[theme.breakpoints.down('xs')]: {
13+
[theme.breakpoints.down('sm')]: {
1414
display: 'inline-block',
1515
fontWeight: 'bold',
1616
width: '100%',
1717
boxSizing: 'border-box',
1818
},
1919
},
2020
simpleCell: {
21-
[theme.breakpoints.down('xs')]: {
21+
[theme.breakpoints.down('sm')]: {
2222
display: 'inline-block',
2323
width: '100%',
2424
boxSizing: 'border-box',
@@ -28,7 +28,7 @@ const useStyles = makeStyles(
2828
verticalAlign: 'top',
2929
},
3030
stackedCommon: {
31-
[theme.breakpoints.down('sm')]: {
31+
[theme.breakpoints.down('md')]: {
3232
display: 'inline-block',
3333
fontSize: '16px',
3434
height: 'auto',
@@ -56,7 +56,7 @@ const useStyles = makeStyles(
5656
},
5757
},
5858
stackedParent: {
59-
[theme.breakpoints.down('sm')]: {
59+
[theme.breakpoints.down('md')]: {
6060
display: 'inline-block',
6161
fontSize: '16px',
6262
height: 'auto',
@@ -72,19 +72,19 @@ const useStyles = makeStyles(
7272
boxSizing: 'border-box',
7373
},
7474
cellStackedSmall: {
75-
[theme.breakpoints.down('sm')]: {
75+
[theme.breakpoints.down('md')]: {
7676
width: '50%',
7777
boxSizing: 'border-box',
7878
},
7979
},
8080
responsiveStackedSmall: {
81-
[theme.breakpoints.down('sm')]: {
81+
[theme.breakpoints.down('md')]: {
8282
width: '50%',
8383
boxSizing: 'border-box',
8484
},
8585
},
8686
responsiveStackedSmallParent: {
87-
[theme.breakpoints.down('sm')]: {
87+
[theme.breakpoints.down('md')]: {
8888
width: '100%',
8989
boxSizing: 'border-box',
9090
},

src/components/TableBodyRow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ const defaultBodyRowStyles = theme => ({
1818
},
1919
hoverCursor: { cursor: 'pointer' },
2020
responsiveStacked: {
21-
[theme.breakpoints.down('sm')]: {
21+
[theme.breakpoints.down('md')]: {
2222
borderTop: 'solid 2px rgba(0, 0, 0, 0.15)',
2323
borderBottom: 'solid 2px rgba(0, 0, 0, 0.15)',
2424
padding: 0,
2525
margin: 0,
2626
},
2727
},
2828
responsiveSimple: {
29-
[theme.breakpoints.down('xs')]: {
29+
[theme.breakpoints.down('sm')]: {
3030
borderTop: 'solid 2px rgba(0, 0, 0, 0.15)',
3131
borderBottom: 'solid 2px rgba(0, 0, 0, 0.15)',
3232
padding: 0,

src/components/TableHead.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const useStyles = makeStyles(
1010
theme => ({
1111
main: {},
1212
responsiveStacked: {
13-
[theme.breakpoints.down('sm')]: {
13+
[theme.breakpoints.down('md')]: {
1414
display: 'none',
1515
},
1616
},
1717
responsiveStackedAlways: {
1818
display: 'none',
1919
},
2020
responsiveSimple: {
21-
[theme.breakpoints.down('xs')]: {
21+
[theme.breakpoints.down('sm')]: {
2222
display: 'none',
2323
},
2424
},

src/components/TableToolbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const defaultToolbarStyles = theme => ({
6565
marginTop: '10px',
6666
marginRight: '8px',
6767
},
68-
[theme.breakpoints.down('sm')]: {
68+
[theme.breakpoints.down('md')]: {
6969
titleRoot: {},
7070
titleText: {
7171
fontSize: '16px',
@@ -82,7 +82,7 @@ export const defaultToolbarStyles = theme => ({
8282
textAlign: 'right',
8383
},
8484
},
85-
[theme.breakpoints.down('xs')]: {
85+
[theme.breakpoints.down('sm')]: {
8686
root: {
8787
display: 'block',
8888
'@media print': {

0 commit comments

Comments
 (0)