Fix explicit lyrics display & move submit username

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-10-27 19:36:52 +04:00
parent 1f322acc09
commit 01c13dac48
2 changed files with 22 additions and 19 deletions
+21 -18
View File
@@ -8,7 +8,8 @@ import {
CardContent,
CardMedia,
Typography,
Grid
Grid,
Box
} from '@mui/material'
import ExplicitIcon from '@mui/icons-material/Explicit'
import {styled} from '@mui/material/styles'
@@ -59,30 +60,32 @@ export default function TeksKat({parole}) {
title={titre}
/>
<CardContent>
<Typography display='inline' style={{marginRight: 5}} variant='h6' component='h2'>
{titre}
</Typography>
{parole.eksplisit && (
<ExplicitIcon style={{marginRight: 5}} color='secondary' fontSize='small' />
)}
<Typography variant='caption'>
{parole.user && (
<>
(<i>parole soumise par {parole.user.username}</i>)
</>
<Box sx={{display: 'flex', alignItems: 'center'}}>
<Typography display='inline' style={{marginRight: 5}} variant='h6' component='h2'>
{titre}
</Typography>
{attributes.explicitLyrics && (
<ExplicitIcon style={{marginRight: 5}} color='secondary' fontSize='small' />
)}
{parole.userAdmin && !parole.user && (
<>
(<i>parole soumise par {parole.userAdmin}</i>)
</>
)}
</Typography>
</Box>
<Typography variant='body2' color='textSecondary' component='p'>
{aliases}
</Typography>
<Typography variant='body2' color='textSecondary' component='p'>
{annee}
</Typography>
<Typography sx={{fontStyle: 'italic'}} variant='caption'>
{attributes.user && (
<>
(<i>parole soumise par {attributes.user.username}</i>)
</>
)}
{attributes.userAdmin && !attributes.user && (
<>
(<i>parole soumise par {attributes.userAdmin}</i>)
</>
)}
</Typography>
<Typography align='center' style={{marginTop: '0.5em'}} variant='body1' color='textSecondary' component='p'>
Publiée le : {datPiblikasyon}
</Typography>