Browse Source

fix: #305 disable double click to copy on pc

Yifei Zhang 1 year ago
parent
commit
0385f6ede9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/components/home.tsx

+ 4 - 1
app/components/home.tsx

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