Merge pull request #213 from leedom92/copy-content-in-mobile

feat: setUserInput with onDoubleClickCapture in mobile phone
This commit is contained in:
Yifei Zhang 2023-03-30 15:38:54 +08:00 committed by GitHub
commit fe858621f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,6 +439,7 @@ export function Chat(props: {
className="markdown-body"
style={{ fontSize: `${fontSize}px` }}
onContextMenu={(e) => onRightClick(e, message)}
onDoubleClickCapture={() => setUserInput(message.content)}
>
<Markdown content={message.content} />
</div>