Fix break-words with HTML

This commit is contained in:
Chewbacca 2022-11-03 15:22:18 -04:00
parent 7571b88c51
commit fe55152667
2 changed files with 5 additions and 1 deletions

View file

@ -314,7 +314,7 @@ const ChatMessageList: React.FC<IChatMessageList> = ({ chat }) => {
tabIndex={0}
>
{maybeRenderMedia(chatMessage)}
<Text size='sm' theme='inherit' dangerouslySetInnerHTML={{ __html: parseContent(chatMessage) }} />
<Text size='sm' theme='inherit' className='break-word-nested' dangerouslySetInnerHTML={{ __html: parseContent(chatMessage) }} />
</div>
<div className={classNames({ 'order-1': !isMyMessage })}>

View file

@ -83,6 +83,10 @@
@tailwind utilities;
@layer utilities {
.break-word-nested > p {
word-break: break-word;
}
.shadow-inset {
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
}