1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 05:41:41 +02:00

reduce description length inside AssetTeaser (#815)

This commit is contained in:
Norbi 2021-08-27 12:58:54 +03:00 committed by GitHub
parent 864107b028
commit 238fd2bbe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,10 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({
<div className={styles.content}>
<Dotdotdot tagName="p" clamp={3}>
{removeMarkdown(
attributes?.additionalInformation?.description || ''
attributes?.additionalInformation?.description.substring(
0,
300
) || ''
)}
</Dotdotdot>
</div>