Move teks titre

This commit is contained in:
2020-12-17 23:47:15 +01:00
parent 8c3d38fdc4
commit 6baab69e87
+19 -21
View File
@@ -45,7 +45,6 @@ const useStyles = makeStyles(theme => ({
} }
}, },
menuButton: { menuButton: {
marginRight: theme.spacing(2),
[theme.breakpoints.up('sm')]: { [theme.breakpoints.up('sm')]: {
display: 'none' display: 'none'
} }
@@ -69,9 +68,6 @@ const useStyles = makeStyles(theme => ({
text: { text: {
marginBottom: '0.5em' marginBottom: '0.5em'
}, },
button: {
marginRight: '0.5em'
},
gridText: { gridText: {
border: '1px dashed grey', border: '1px dashed grey',
borderRadius: '5px', borderRadius: '5px',
@@ -136,9 +132,6 @@ export default function TeksDrawer({miziks, mizik}) {
<KeyboardBackspaceIcon style={{fontSize: '1.5em'}} /> <KeyboardBackspaceIcon style={{fontSize: '1.5em'}} />
</IconButton> </IconButton>
</Link> </Link>
<Typography noWrap variant='h6'>
{teks.titre}
</Typography>
{teks.liens && teks.liens.length > 0 && ( {teks.liens && teks.liens.length > 0 && (
<div className={classes.vwe}> <div className={classes.vwe}>
<VweKouteAchte isVideo teks={teks} /> <VweKouteAchte isVideo teks={teks} />
@@ -189,26 +182,31 @@ export default function TeksDrawer({miziks, mizik}) {
</nav> </nav>
<main className={classes.content}> <main className={classes.content}>
{teks ? ( {teks ? (
<Grid container className={classes.grid} spacing={3}> <>
<Grid item md className={classes.gridText}> <Typography noWrap align='center' style={{marginTop: '1em'}} variant='h6'>
<Typography align='center' className={classes.text} variant='h4'> {teks.titre}
Transcription </Typography>
</Typography> <Grid container className={classes.grid} spacing={3}>
<Typography paragraph align='justify' component='span'>
{formatJsonString(teks.transcription)}
</Typography>
</Grid>
{teks.traductions && (
<Grid item md className={classes.gridText}> <Grid item md className={classes.gridText}>
<Typography align='center' className={classes.text} variant='h4'> <Typography align='center' className={classes.text} variant='h4'>
Traduction Transcription
</Typography> </Typography>
<Typography paragraph align='justify' component='span'> <Typography paragraph align='justify' component='span'>
{formatJsonString(teks.traductions.francais)} {formatJsonString(teks.transcription)}
</Typography> </Typography>
</Grid> </Grid>
)} {teks.traductions && (
</Grid> <Grid item md className={classes.gridText}>
<Typography align='center' className={classes.text} variant='h4'>
Traduction
</Typography>
<Typography paragraph align='justify' component='span'>
{formatJsonString(teks.traductions.francais)}
</Typography>
</Grid>
)}
</Grid>
</>
) : ( ) : (
<DenyeTeks {...miziks} /> <DenyeTeks {...miziks} />
)} )}