From 9b1c1dfe1b8116c293b6fa48ad77a29cda9e8dcf Mon Sep 17 00:00:00 2001 From: Alejandro Gomez Date: Mon, 13 Feb 2023 18:33:24 +0100 Subject: [PATCH] fix: set auto to whole text content instead of individual paragraphs --- src/Element/Text.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Element/Text.tsx b/src/Element/Text.tsx index a460b674..dafcc720 100644 --- a/src/Element/Text.tsx +++ b/src/Element/Text.tsx @@ -128,7 +128,7 @@ export default function Text({ content, tags, creator, users }: TextProps) { function transformParagraph(frag: TextFragment) { const fragments = transformText(frag); if (fragments.every(f => typeof f === "string")) { - return

{fragments}

; + return

{fragments}

; } return <>{fragments}; } @@ -175,8 +175,10 @@ export default function Text({ content, tags, creator, users }: TextProps) { [content] ); return ( - - {content} - +
+ + {content} + +
); }