feat: allow copy in message text

pull/81/head
moonrailgun 3 years ago
parent 48c7c2b9fc
commit 2c979a96bb

@ -22,6 +22,7 @@ import { useChatMessageItemAction } from './useChatMessageItemAction';
import { useChatMessageReactionAction } from './useChatMessageReaction'; import { useChatMessageReactionAction } from './useChatMessageReaction';
import { TcPopover } from '@/components/TcPopover'; import { TcPopover } from '@/components/TcPopover';
import { useMessageReactions } from './useMessageReactions'; import { useMessageReactions } from './useMessageReactions';
import { stopPropagation } from '@/utils/dom-helper';
import './Item.less'; import './Item.less';
/** /**
@ -90,7 +91,10 @@ const NormalMessage: React.FC<ChatMessageItemProps> = React.memo((props) => {
</div> </div>
{/* 主体 */} {/* 主体 */}
<div className="flex flex-col flex-1 overflow-auto group"> <div
className="flex flex-col flex-1 overflow-auto group"
onContextMenu={stopPropagation}
>
{showAvatar && ( {showAvatar && (
<div className="flex items-center"> <div className="flex items-center">
<div className="font-bold">{userInfo.nickname}</div> <div className="font-bold">{userInfo.nickname}</div>

Loading…
Cancel
Save