Fix spacing between cancle and save button

This commit is contained in:
Sascha 2021-03-03 18:14:37 +01:00
parent 8e8ca99bd5
commit 50484fb97e
3 changed files with 6 additions and 2 deletions

View File

@ -49,6 +49,9 @@ const useStyles = makeStyles((theme) => ({
backgroundColor: theme.palette.success.main, backgroundColor: theme.palette.success.main,
color: theme.palette.success.contrastText, color: theme.palette.success.contrastText,
}, },
saveButton: {
marginRight: theme.spacing(1),
},
})); }));
interface Props { interface Props {
@ -117,6 +120,7 @@ function BugTitleForm({ bug }: Props) {
/> />
<div className={classes.editButtonContainer}> <div className={classes.editButtonContainer}>
<Button <Button
className={classes.saveButton}
size="small" size="small"
variant="contained" variant="contained"
type="submit" type="submit"

View File

@ -112,7 +112,7 @@ const useStyles = makeStyles<Theme, StylesProps>((theme) => ({
padding: theme.spacing(2, 3), padding: theme.spacing(2, 3),
}, },
}, },
newIssueButton: { greenButton: {
backgroundColor: theme.palette.success.main, backgroundColor: theme.palette.success.main,
color: theme.palette.success.contrastText, color: theme.palette.success.contrastText,
}, },
@ -315,7 +315,7 @@ function ListQuery() {
<IfLoggedIn> <IfLoggedIn>
{() => ( {() => (
<Button <Button
className={classes.newIssueButton} className={classes.greenButton}
variant="contained" variant="contained"
href="/new" href="/new"
> >