Reorganize Teks page

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-12-12 23:17:59 +04:00
parent d0c9e8b396
commit 7ed3c6ac4a
2 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export default function DiferansDialog({difference}) {
} }
return ( return (
<Box sx={{textAlign: 'center'}}> <Box sx={{textAlign: 'center', marginTop: 2}}>
<Button variant='outlined' onClick={handleClickOpen}> <Button variant='outlined' onClick={handleClickOpen}>
Voir la liste des modifications Voir la liste des modifications
</Button> </Button>
+8 -9
View File
@@ -132,7 +132,7 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
<Pataje parole={parole} setError={setError} setSuccess={setSuccess} /> <Pataje parole={parole} setError={setError} setSuccess={setSuccess} />
</div> </div>
<Box sx={{textAlign: 'center'}}> <Box sx={{textAlign: 'center'}}>
<Typography variant='h4' component='div' display='block'> <Typography variant='h4' component='div' display='block' marginBottom={2}>
<Typography gutterBottom variant='h6' component='div'> <Typography gutterBottom variant='h6' component='div'>
{aliases} {aliases}
</Typography> </Typography>
@@ -151,12 +151,8 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
</ExplicitTooltip> </ExplicitTooltip>
)} )}
</Typography> </Typography>
<Grid container alignItems='center' justifyContent='center'>
{commentaires && (
<VweKomante commentaires={commentaires} parole={parole} paroleId={paroleId} />
)}
</Grid>
</Typography> </Typography>
{parole?.user?.data && ( {parole?.user?.data && (
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'> <Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
<i>parole soumise par {parole.user.data.attributes.username}</i> <i>parole soumise par {parole.user.data.attributes.username}</i>
@@ -167,7 +163,6 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
<i>parole soumise par {parole.userAdmin.data.attributes.firstname}</i> <i>parole soumise par {parole.userAdmin.data.attributes.firstname}</i>
</Typography> </Typography>
)} )}
</Box>
{(parole.okiMizikID || parole.streamAudio.length > 0) && ( {(parole.okiMizikID || parole.streamAudio.length > 0) && (
<Box sx={{textAlign: 'center'}}> <Box sx={{textAlign: 'center'}}>
<EntegreMizik parole={parole} isMobile={isMobile} /> <EntegreMizik parole={parole} isMobile={isMobile} />
@@ -176,11 +171,10 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
{parole.okiMizikID && ( {parole.okiMizikID && (
<OkiMizik id={parole.okiMizikID} parole={parole} /> <OkiMizik id={parole.okiMizikID} parole={parole} />
)} )}
{parole?.difference?.length > 0 && ( {parole?.difference?.length > 0 && (
<DiferansDialog difference={parole.difference} /> <DiferansDialog difference={parole.difference} />
)} )}
</Box>
<Grid container justifyContent='start' spacing={1}> <Grid container justifyContent='start' spacing={1}>
<Grid item xs={12} md={langArray.length > 0 ? 6 : null}> <Grid item xs={12} md={langArray.length > 0 ? 6 : null}>
<div className={classes.gridText}> <div className={classes.gridText}>
@@ -243,6 +237,11 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
</Alert> </Alert>
</Snackbar> </Snackbar>
)} )}
<Grid container alignItems='center' justifyContent='center'>
{commentaires && (
<VweKomante commentaires={commentaires} parole={parole} paroleId={paroleId} />
)}
</Grid>
</Root> </Root>
) )
} }