From 78a28ecae704828015077798b9574ba59f223e52 Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Tue, 28 May 2024 23:55:29 +0100 Subject: [PATCH] fix: handle output newlines in component --- agenta-web/src/components/NLines/NLines.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-web/src/components/NLines/NLines.tsx b/agenta-web/src/components/NLines/NLines.tsx index a48fd4c780..b8f6ed806b 100644 --- a/agenta-web/src/components/NLines/NLines.tsx +++ b/agenta-web/src/components/NLines/NLines.tsx @@ -33,7 +33,7 @@ const NLines: React.FC = ({lines = 8, allowReadMore = false, children}) = setRef(elem!)} - className={`overflow-hidden text-ellipsis ${collapsed ? classes.text : ""}`} + className={`overflow-hidden text-ellipsis ${collapsed ? classes.text : ""} whitespace-pre-line`} > {children}