Skip to content

Commit

Permalink
fix: chat copy & append functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
aexshafii committed Feb 3, 2025
1 parent ed7b644 commit a874b99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const AppendButton: React.FC<AppendButtonProps> = ({ content }) => {
className="p-1 hover:bg-[--background-modifier-hover] rounded"
title="Append to current note"
>
<FileText className="h-4 w-4 text-[--text-muted]" />
<FileText size={16} className="text-[--text-muted]" />
</button>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CopyButton: React.FC<CopyButtonProps> = ({ content }) => {
className="p-1 hover:bg-[--background-modifier-hover] rounded"
title="Copy to clipboard"
>
<Copy className="h-4 w-4 text-[--text-muted]" />
<Copy size={16} className="text-[--text-muted]" />
</button>
);
};
4 changes: 2 additions & 2 deletions packages/plugin/views/assistant/ai-chat/message-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const MessageRenderer: React.FC<MessageRendererProps> = ({

{message.role === "assistant" && (
<div className="relative flex justify-end mt-2 space-x-2 mr-3">
<AppendButton text={message.content} />
<CopyButton text={message.content} />
<AppendButton content={message.content} />
<CopyButton content={message.content} />
</div>
)}

Expand Down

0 comments on commit a874b99

Please sign in to comment.