Skip to content

Commit

Permalink
Merge pull request #2466 from vedmalex/vedmalex-fox-2463
Browse files Browse the repository at this point in the history
Fix Edit toolbar hides the last form item on mobile
  • Loading branch information
fzaninotto authored Oct 25, 2018
2 parents 4990c60 + 3d82db1 commit d8d2ab8
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions packages/ra-ui-materialui/src/layout/CardContentInner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ import classnames from 'classnames';
import CardContent from '@material-ui/core/CardContent';
import { withStyles } from '@material-ui/core/styles';

const styles = {
root: {
paddingTop: 0,
paddingBottom: 0,
'&:first-child': {
paddingTop: 16,
},
'&:last-child': {
paddingBottom: 16,
},
var styles = theme => ({
root: {
paddingTop: 0,
paddingBottom: 0,
'&:first-child': {
paddingTop: 16,
},
};
'&:last-child': {
paddingBottom: 16,
[theme.breakpoints.only('xs')]: {
paddingBottom: 70,
},
},
},
});

/**
* Overrides material-ui CardContent to allow inner content
Expand Down

0 comments on commit d8d2ab8

Please sign in to comment.