Browse Source

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

feat: setUserInput with onDoubleClickCapture in mobile phone
Yifei Zhang 1 year ago
parent
commit
fe858621f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/components/home.tsx

+ 1 - 0
app/components/home.tsx

@@ -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>