Skip to content

Commit

Permalink
Prevent very big lines on rendermessage markdown (#6339)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Jul 19, 2024
1 parent eb96d40 commit e53d65e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions front/components/assistant/RenderMessageMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,14 @@ function OlBlock({ children }: { children: React.ReactNode }) {
}
function LiBlock({ children }: { children: React.ReactNode }) {
return (
<li className="py-2 text-element-800 first:pt-0 last:pb-0">{children}</li>
<li className="break-words py-2 text-element-800 first:pt-0 last:pb-0">
{children}
</li>
);
}
function ParagraphBlock({ children }: { children: React.ReactNode }) {
return (
<div className="whitespace-pre-wrap py-2 text-base font-normal leading-7 text-element-800 first:pt-0 last:pb-0">
<div className="whitespace-pre-wrap break-words py-2 text-base font-normal leading-7 text-element-800 first:pt-0 last:pb-0">
{children}
</div>
);
Expand Down

0 comments on commit e53d65e

Please sign in to comment.