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
+18 -19
View File
@@ -132,7 +132,7 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
<Pataje parole={parole} setError={setError} setSuccess={setSuccess} />
</div>
<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'>
{aliases}
</Typography>
@@ -151,12 +151,8 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
</ExplicitTooltip>
)}
</Typography>
<Grid container alignItems='center' justifyContent='center'>
{commentaires && (
<VweKomante commentaires={commentaires} parole={parole} paroleId={paroleId} />
)}
</Grid>
</Typography>
{parole?.user?.data && (
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
<i>parole soumise par {parole.user.data.attributes.username}</i>
@@ -167,20 +163,18 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
<i>parole soumise par {parole.userAdmin.data.attributes.firstname}</i>
</Typography>
)}
{(parole.okiMizikID || parole.streamAudio.length > 0) && (
<Box sx={{textAlign: 'center'}}>
<EntegreMizik parole={parole} isMobile={isMobile} />
</Box>
)}
{parole.okiMizikID && (
<OkiMizik id={parole.okiMizikID} parole={parole} />
)}
{parole?.difference?.length > 0 && (
<DiferansDialog difference={parole.difference} />
)}
</Box>
{(parole.okiMizikID || parole.streamAudio.length > 0) && (
<Box sx={{textAlign: 'center'}}>
<EntegreMizik parole={parole} isMobile={isMobile} />
</Box>
)}
{parole.okiMizikID && (
<OkiMizik id={parole.okiMizikID} parole={parole} />
)}
{parole?.difference?.length > 0 && (
<DiferansDialog difference={parole.difference} />
)}
<Grid container justifyContent='start' spacing={1}>
<Grid item xs={12} md={langArray.length > 0 ? 6 : null}>
<div className={classes.gridText}>
@@ -243,6 +237,11 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
</Alert>
</Snackbar>
)}
<Grid container alignItems='center' justifyContent='center'>
{commentaires && (
<VweKomante commentaires={commentaires} parole={parole} paroleId={paroleId} />
)}
</Grid>
</Root>
)
}