changed markdown renderer margins

This commit is contained in:
Lucas Oliveira 2025-10-21 15:46:18 -03:00
parent 01b7e1ab67
commit de209a22b6

View file

@ -67,11 +67,14 @@ export const MarkdownRenderer = ({ chatMessage, className }: MarkdownRendererPro
urlTransform={(url) => url}
components={{
p({ node, ...props }) {
return <p className="w-fit max-w-full">{props.children}</p>;
return <p className="w-fit max-w-full first:mt-0 last:mb-0 my-2">{props.children}</p>;
},
ol({ node, ...props }) {
return <ol className="max-w-full">{props.children}</ol>;
},
strong({ node, ...props }) {
return <strong className="font-bold">{props.children}</strong>;
},
h1({ node, ...props }) {
return <h1 className="mb-6 mt-4">{props.children}</h1>;
},