fix: remove truncation for title in search result blocks; refs #180

This commit is contained in:
Hossein Mehrabi 2023-09-05 22:57:00 +03:30
parent 681ceea70d
commit 29b968863c
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 1 additions and 2 deletions

View File

@ -39,8 +39,7 @@ const ContentBlockFooter = ({
component="h4" component="h4"
genericFontFamily="serif" genericFontFamily="serif"
> >
{title.slice(0, Math.min(60, title.length))} {title}
{title.length > 60 ? '...' : ''}
</Typography> </Typography>
</Link> </Link>
</PostTitle> </PostTitle>