fix: Safari overflowing issues (#11385)

This commit is contained in:
sean-brydon
2023-09-15 15:57:49 +02:00
committed by GitHub
parent 4724b1312c
commit c188a91d64
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
<div className="flex flex-wrap items-center">
<h2 className=" text-default pr-2 text-sm font-semibold">{type.title}</h2>
</div>
<EventTypeDescription eventType={type} isPublic={true} />
<EventTypeDescription eventType={type} isPublic={true} shortenDescription />
</Link>
</div>
</div>
@@ -47,7 +47,7 @@ export const EventTypeDescription = ({
<div
className={classNames(
"text-subtle line-clamp-3 break-words py-1 text-sm sm:max-w-[650px] [&_a]:text-blue-500 [&_a]:underline [&_a]:hover:text-blue-600",
shortenDescription ? "line-clamp-4" : ""
shortenDescription ? "line-clamp-4 [&>*:not(:first-child)]:hidden" : ""
)}
dangerouslySetInnerHTML={{
__html: eventType.descriptionAsSafeHTML || "",