limit event desc string length on frontend side

also adds a read more button
This commit is contained in:
LBlend committed 2023-11-11 23:29:34 +01:00
1 parent 6118c7a122
commit 1df74fc51d
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ const Events = () => {
</p>
</div>
</div>
<p>{event.description}</p>
<p>{event.description.slice(0, 120)}... <span className={styles.readMore}>Les mer</span></p>
</article>
</Link>
))
@@ -77,3 +77,9 @@
padding: 2em;
}
}
.readMore {
opacity: 0.5;
text-decoration: underline;
font-size: 0.75em;
}