mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-12 08:43:03 +01:00
Break long links in train of thought to stay within chat page width
This commit is contained in:
parent
c0316a6b5d
commit
ca45fce8ac
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ export function TrainOfThought(props: TrainOfThoughtProps) {
|
||||||
let markdownRendered = DOMPurify.sanitize(md.render(props.message));
|
let markdownRendered = DOMPurify.sanitize(md.render(props.message));
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${styles.trainOfThoughtElement} items-center ${props.primary ? "text-gray-400" : "text-gray-300"} ${styles.trainOfThought} ${props.primary ? styles.primary : ""}`}
|
className={`${styles.trainOfThoughtElement} break-all items-center ${props.primary ? "text-gray-400" : "text-gray-300"} ${styles.trainOfThought} ${props.primary ? styles.primary : ""}`}
|
||||||
>
|
>
|
||||||
{icon}
|
{icon}
|
||||||
<div dangerouslySetInnerHTML={{ __html: markdownRendered }} />
|
<div dangerouslySetInnerHTML={{ __html: markdownRendered }} />
|
||||||
|
|
Loading…
Reference in a new issue