diff --git a/src/components/EmailHeader/EmailHeader.js b/src/components/EmailHeader/EmailHeader.js index c4b4485..d3c5ccf 100644 --- a/src/components/EmailHeader/EmailHeader.js +++ b/src/components/EmailHeader/EmailHeader.js @@ -9,20 +9,18 @@ export default function EmailHeader({ datetime, from_name, from_email, to, cc }) const theme = useTheme(); const useStyles = makeStyles({ "paperWrapper": { - padding: theme.spacing(1), - marginTop: theme.spacing(1), - marginBottom: theme.spacing(1) + padding: `${theme.spacing(1)}px ${theme.spacing(2)}px`, + margin: `${theme.spacing(1)}px 0`, + borderBottomLeftRadius: 0, + borderBottomRightRadius: 0 }, "removeNegativeMargin": { margin: 0 }, "secondaryInformation": { backgroundColor: theme.palette.type === "light" ? theme.palette.grey[100] : theme.palette.grey[700], - marginTop: theme.spacing(1), - marginLeft: -theme.spacing(1), - marginRight: -theme.spacing(1), - marginBottom: -theme.spacing(1), - padding: theme.spacing(1) + margin: `${theme.spacing(1)}px ${-theme.spacing(2)}px ${-theme.spacing(1)}px ${-theme.spacing(2)}px`, + padding: `${theme.spacing(1)}px ${theme.spacing(2)}px` } }); const classes = useStyles();