Browse Source

feat: close #2954 chat summary should be copyable

Yidadaa 1 year ago
parent
commit
8c0ba1aee2
2 changed files with 5 additions and 0 deletions
  1. 1 0
      app/components/chat.tsx
  2. 4 0
      app/styles/globals.scss

+ 1 - 0
app/components/chat.tsx

@@ -143,6 +143,7 @@ export function SessionConfigModel(props: { onClose: () => void }) {
           extraListItems={
             session.mask.modelConfig.sendMemory ? (
               <ListItem
+                className="copyable"
                 title={`${Locale.Memory.Title} (${session.lastSummarizeIndex} of ${session.messages.length})`}
                 subTitle={session.memoryPrompt || Locale.Memory.EmptyContent}
               ></ListItem>

+ 4 - 0
app/styles/globals.scss

@@ -357,3 +357,7 @@ pre {
   overflow: hidden;
   text-overflow: ellipsis;
 }
+
+.copyable {
+  user-select: text;
+}