fix: lien vers le titre phare sur la page artiste

This commit is contained in:
2026-07-03 19:59:49 +04:00
parent 55967bfc3c
commit a56b355493
+16 -12
View File
@@ -146,23 +146,27 @@ export default function AwtisDetay({anAwtis}) {
<Grid container> <Grid container>
{coverUrl && ( {coverUrl && (
<Grid size={{xs: 12, sm: 4}}> <Grid size={{xs: 12, sm: 4}}>
<Box sx={{position: 'relative', minHeight: 130, height: '100%'}}> <Link href={`/paroles/${titrePhare.slug}`} style={{display: 'block', height: '100%'}}>
<Image <Box sx={{position: 'relative', minHeight: 130, height: '100%'}}>
src={coverUrl} <Image
alt={titrePhare.titre} src={coverUrl}
fill alt={titrePhare.titre}
placeholder='blur' fill
blurDataURL={BLUR_DATA_URL} placeholder='blur'
sizes='200px' blurDataURL={BLUR_DATA_URL}
style={{objectFit: 'cover'}} sizes='200px'
/> style={{objectFit: 'cover'}}
</Box> />
</Box>
</Link>
</Grid> </Grid>
)} )}
<Grid size={{xs: 12, sm: coverUrl ? 8 : 12}}> <Grid size={{xs: 12, sm: coverUrl ? 8 : 12}}>
<CardContent> <CardContent>
<Typography variant='subtitle1' sx={{fontWeight: 700}} gutterBottom> <Typography variant='subtitle1' sx={{fontWeight: 700}} gutterBottom>
{titrePhare.titre} <Link href={`/paroles/${titrePhare.slug}`} style={{color: 'inherit', textDecoration: 'none'}}>
{titrePhare.titre}
</Link>
</Typography> </Typography>
<Typography variant='caption' sx={{color: 'text.secondary', display: 'block', mb: 1}}> <Typography variant='caption' sx={{color: 'text.secondary', display: 'block', mb: 1}}>
Écouter sur Écouter sur