Fix components position

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-21 07:56:15 +04:00
parent 9327345af0
commit 6047b89eed
7 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ const StyledGrid = styled(Grid)((
) => ({ ) => ({
[`& .${classes.root}`]: { [`& .${classes.root}`]: {
'& > *': { '& > *': {
marginBottom: theme.spacing(2) marginBottom: theme.spacing(2),
marginTop: theme.spacing(4)
} }
} }
})) }))
+1
View File
@@ -49,6 +49,7 @@ function Dekoneksyon({chimen, tooltipPlacement}) {
> >
<Fab <Fab
className={classes.dekoneksyon} className={classes.dekoneksyon}
sx={{position: 'absolute', marginTop: 6}}
color='secondary' color='secondary'
aria-label='logout' aria-label='logout'
size='small' size='small'
+1 -1
View File
@@ -106,7 +106,7 @@ function Koneksyon({detay, tit, soutit, titGwose, chimen}) {
return ( return (
<Container maxWidth='sm'> <Container maxWidth='sm'>
{tit && ( {tit && (
<Box sx={{textAlign: 'center'}}> <Box sx={{textAlign: 'center', marginTop: 5}}>
<Typography display='inline' variant={`h${titGwose}`} component='h1'> <Typography display='inline' variant={`h${titGwose}`} component='h1'>
{tit} {tit}
</Typography> </Typography>
+1 -1
View File
@@ -169,7 +169,7 @@ function EkriTeks({session}) {
return ( return (
<StyledContainer maxWidth='sm'> <StyledContainer maxWidth='sm'>
<Box align='center' marginBottom={2}> <Box sx={{textAlign: 'center', marginBottom: 2, marginTop: 5}}>
<Typography display='inline' variant='h5' component='h1'> <Typography display='inline' variant='h5' component='h1'>
Soumèt an tèks Soumèt an tèks
</Typography> </Typography>
+1 -1
View File
@@ -12,7 +12,7 @@ const classes = {
const Root = styled('div')(() => ({ const Root = styled('div')(() => ({
[`&.${classes.container}`]: { [`&.${classes.container}`]: {
marginTop: '3em' marginTop: '6em'
} }
})) }))
+3 -3
View File
@@ -80,7 +80,7 @@ const Root = styled('div')((
[`& .${classes.appBar}`]: { [`& .${classes.appBar}`]: {
borderTop: '2px solid #303030', borderTop: '2px solid #303030',
marginTop: '4.71rem', marginTop: '4.50rem',
[theme.breakpoints.up('sm')]: { [theme.breakpoints.up('sm')]: {
width: `calc(100% - ${drawerWidth}px)`, width: `calc(100% - ${drawerWidth}px)`,
marginLeft: drawerWidth marginLeft: drawerWidth
@@ -98,7 +98,7 @@ const Root = styled('div')((
[`& .${classes.drawerPaper}`]: { [`& .${classes.drawerPaper}`]: {
borderTop: '2px solid #303030', borderTop: '2px solid #303030',
marginTop: '4.71rem', marginTop: '4.50rem',
width: drawerWidth width: drawerWidth
}, },
@@ -319,7 +319,7 @@ export default function TeksDrawer({teks, anTeks, komante}) {
<div className={classes.pataje}> <div className={classes.pataje}>
<Pataje teks={anTeks} setError={setError} setSuccess={setSuccess} /> <Pataje teks={anTeks} setError={setError} setSuccess={setSuccess} />
</div> </div>
<Box sx={{textAlign: 'center', marginTop: 6}}> <Box sx={{textAlign: 'center', marginTop: 9}}>
<Typography style={{marginTop: '0.8em'}} variant='h4' display='block'> <Typography style={{marginTop: '0.8em'}} variant='h4' display='block'>
<Typography gutterBottom variant='h6'> <Typography gutterBottom variant='h6'>
{anTeks.awtis.map(a => a.alias).join(', ')} {anTeks.awtis.map(a => a.alias).join(', ')}
+1 -1
View File
@@ -63,7 +63,7 @@ export default function Home({kantiteAwtis, kantiteTeks}) {
return ( return (
<HeadLayout tab={0}> <HeadLayout tab={0}>
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}> <Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
<Box sx={{flexGrow: 1}}> <Box sx={{flexGrow: 1, marginTop: 4}}>
<Container align='center'> <Container align='center'>
<Image <Image
alt='Logo #OKi' alt='Logo #OKi'