From a00b42c5a797acadd6aabd28512d237c33445590 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 9 Oct 2024 11:16:46 +0200 Subject: [PATCH] Merge adjacent paragraphs in `EmbeddedStatusContent` to benefit from `-webkit-line-clamp` --- .../notifications_v2/components/embedded_status_content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx b/app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx index 1a38be536b..26028fd1fe 100644 --- a/app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx +++ b/app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx @@ -87,7 +87,7 @@ export const EmbeddedStatusContent: React.FC<{ className={className} ref={handleContentRef} lang={language} - dangerouslySetInnerHTML={{ __html: content }} + dangerouslySetInnerHTML={{ __html: content.replace(/<\/p>

/g, '\n\n') }} /> ); };