Skip to content

Commit

Permalink
Merge pull request #1713 from Agenta-AI/AGE-263/-handle-output-newlin…
Browse files Browse the repository at this point in the history
…es-in-component

[Sub Fix]: Handle output newlines in NLines component
  • Loading branch information
mmabrouk authored May 29, 2024
2 parents 2aa1418 + 78a28ec commit a5095bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-web/src/components/NLines/NLines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const NLines: React.FC<Props> = ({lines = 8, allowReadMore = false, children}) =
<Space direction="vertical" size={4}>
<Typography.Text
ref={(elem) => setRef(elem!)}
className={`overflow-hidden text-ellipsis ${collapsed ? classes.text : ""}`}
className={`overflow-hidden text-ellipsis ${collapsed ? classes.text : ""} whitespace-pre-line`}
>
{children}
</Typography.Text>
Expand Down

0 comments on commit a5095bc

Please sign in to comment.