fix: title size and spacing

This commit is contained in:
José Oliveira 2021-08-18 23:05:23 +01:00
parent 2bf151c11d
commit af72fdb2b8
2 changed files with 11 additions and 5 deletions

View file

@ -32,10 +32,11 @@ export const Carousel = memo(({ photosData, slidePhoto }) => {
style: { style: {
backgroundColor: 'transparent', backgroundColor: 'transparent',
borderRadius: 0, borderRadius: 0,
fontSize: 150 width: 50,
color: 'transparent',
opacity: 1
} }
}} }}
className={classes.slideButtons}
autoPlay={false} autoPlay={false}
indicators={false} indicators={false}
navButtonsAlwaysVisible={true} navButtonsAlwaysVisible={true}

View file

@ -2,7 +2,7 @@ import { Dialog, DialogContent, makeStyles } from '@material-ui/core'
import React, { memo } from 'react' import React, { memo } from 'react'
import { IconButton } from 'src/components/buttons' import { IconButton } from 'src/components/buttons'
import { H2 } from 'src/components/typography' import { H1 } from 'src/components/typography'
import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg' import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg'
import { spacer } from 'src/styling/variables' import { spacer } from 'src/styling/variables'
@ -14,7 +14,7 @@ const useStyles = makeStyles({
justifyContent: 'end' justifyContent: 'end'
}, },
title: { title: {
margin: [[0, spacer * 2, spacer * 2, spacer * 2 + 4]] margin: [[0, spacer * 2, spacer, spacer * 2 + 4]]
} }
}) })
@ -42,6 +42,11 @@ export const InformativeDialog = memo(
return ( return (
<Dialog <Dialog
PaperProps={{
style: {
borderRadius: 8
}
}}
fullWidth fullWidth
open={open} open={open}
aria-labelledby="form-dialog-title" aria-labelledby="form-dialog-title"
@ -51,7 +56,7 @@ export const InformativeDialog = memo(
<CloseIcon /> <CloseIcon />
</IconButton> </IconButton>
</div> </div>
<H2 className={classes.title}>{title}</H2> <H1 className={classes.title}>{title}</H1>
<DialogContent className={classes.dialogContent}>{data}</DialogContent> <DialogContent className={classes.dialogContent}>{data}</DialogContent>
</Dialog> </Dialog>
) )