Skip to content

Commit

Permalink
Fix last menu item is cut on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Aug 27, 2021
1 parent 626c52a commit 7525403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/demo/src/layout/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ const Menu = ({ dense = false }: MenuProps) => {
const useStyles = makeStyles(theme => ({
root: {
marginTop: theme.spacing(1),
marginBottom: theme.spacing(1),
transition: theme.transitions.create('width', {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen,
Expand Down
1 change: 1 addition & 0 deletions packages/ra-ui-materialui/src/layout/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const useStyles = makeStyles(
flexDirection: 'column',
justifyContent: 'flex-start',
marginTop: '0.5em',
marginBottom: '1em',
[theme.breakpoints.only('xs')]: {
marginTop: 0,
},
Expand Down

0 comments on commit 7525403

Please sign in to comment.