mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
limit event desc string length on frontend side
also adds a read more button
This commit is contained in:
1 parent
6118c7a122
commit
1df74fc51d
2 files changed
+7
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user