Skip to content

Commit

Permalink
feat: close #2954 chat summary should be copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Nov 8, 2023
1 parent 4715477 commit 8c0ba1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions app/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,7 @@ pre {
overflow: hidden;
text-overflow: ellipsis;
}

.copyable {
user-select: text;
}

0 comments on commit 8c0ba1a

Please sign in to comment.