From 305f10f94e0bec5bc2fb8b89293159cc1c1ed326 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Fri, 27 Aug 2021 18:19:16 +0200 Subject: [PATCH] Fix last menu item is cut on Firefox --- examples/demo/src/layout/Menu.tsx | 1 + packages/ra-ui-materialui/src/layout/Menu.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/demo/src/layout/Menu.tsx b/examples/demo/src/layout/Menu.tsx index af86ff1ea68..8edf0e0039c 100644 --- a/examples/demo/src/layout/Menu.tsx +++ b/examples/demo/src/layout/Menu.tsx @@ -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, diff --git a/packages/ra-ui-materialui/src/layout/Menu.tsx b/packages/ra-ui-materialui/src/layout/Menu.tsx index c01a6807fb6..0c89db6dd97 100644 --- a/packages/ra-ui-materialui/src/layout/Menu.tsx +++ b/packages/ra-ui-materialui/src/layout/Menu.tsx @@ -22,6 +22,7 @@ const useStyles = makeStyles( flexDirection: 'column', justifyContent: 'flex-start', marginTop: '0.5em', + marginBottom: '1em', [theme.breakpoints.only('xs')]: { marginTop: 0, },