Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: copy button for code block #1062

Merged
merged 1 commit into from
Dec 18, 2023
Merged

feat: copy button for code block #1062

merged 1 commit into from
Dec 18, 2023

Conversation

urmauur
Copy link
Member

@urmauur urmauur commented Dec 18, 2023

#908

Test scenario

  • Chat with any model
  • Ask regarding programing
  • Make sure the answer including code block, hover the code block you will see the copy button, try copy and paste anywere

Success Criteria

  • User can copy code block easily

UI visual

  1. When hovering code block
Screenshot 2023-12-18 at 20 19 05
  1. When copied code block
Screenshot 2023-12-18 at 20 19 50

fixes #908

@urmauur urmauur self-assigned this Dec 18, 2023
@github-actions github-actions bot added the type: feature request A new feature label Dec 18, 2023
@urmauur urmauur merged commit aa69bc5 into main Dec 18, 2023
5 checks passed
@urmauur urmauur deleted the feat/copy-code-block branch December 18, 2023 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

feat: Copy button for code block
2 participants