fix: handle long word without space to avoid right panel disappears (#3048)

This commit is contained in:
Faisal Amir 2024-06-17 21:54:11 +07:00 committed by Louis
parent 05570ea300
commit 8077eb5cf6
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -201,7 +201,7 @@ const SimpleTextMessage: React.FC<ThreadMessage> = (props) => {
)} )}
</div> </div>
<div className={twMerge('w-full')}> <div className={twMerge('w-full', !isUser && 'break-all')}>
<> <>
{props.content[0]?.type === ContentType.Image && ( {props.content[0]?.type === ContentType.Image && (
<div className="group/image relative mb-2 inline-flex cursor-pointer overflow-hidden rounded-xl"> <div className="group/image relative mb-2 inline-flex cursor-pointer overflow-hidden rounded-xl">