Improved event description truncation (actually removed it mostly) (#5374)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Jeroen ReumkensandPeer Richelsen authored and GitHub committed 2022-11-15 08:36:20 +00:00
1 parent f822177788
commit 02e3738a17
4 files changed
+16 -16

No files matched your search

@@ -35,10 +35,10 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
<>
<div className={classNames("dark:text-darkgray-800 text-neutral-500", className)}>
{eventType.description && (
<h2 className="dark:text-darkgray-800 max-w-[200px] overflow-hidden text-ellipsis py-2 text-sm text-gray-600 opacity-60 sm:max-w-[500px]">
{eventType.description.substring(0, 100)}
{eventType.description.length > 100 && "..."}
</h2>
<p className="dark:text-darkgray-800 max-w-[280px] break-words py-2 text-sm text-gray-600 opacity-60 sm:max-w-[500px]">
{eventType.description.substring(0, 300)}
{eventType.description.length > 300 && "..."}
</p>
)}
<ul className="mt-2 flex flex-wrap space-x-2 sm:flex-nowrap">
<li>