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

Fix 416 copy button on code block #427

Merged

Conversation

thomasleveil
Copy link
Contributor

As reported on #416, the Copy code button does not always shows up on some code blocks, specifically when the content language is not recognized.

Before fix

image

After fix

image

Fixes #416

@vercel
Copy link

vercel bot commented Apr 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chatbot-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2023 10:52pm

@Jdban
Copy link
Contributor

Jdban commented Apr 4, 2023

Thank you!

@mckaywrigley mckaywrigley merged commit 68c9cd4 into mckaywrigley:main Apr 4, 2023
@thomasleveil thomasleveil deleted the fix-416-copy-button-on-code-block branch April 4, 2023 23:06
jpzhangvincent pushed a commit to jpzhangvincent/chatbot-ui that referenced this pull request Apr 7, 2023
* update README regarding GOOGLE_API_KEY and GOOGLE_CSE_ID

* 🐛 fix copy button not showing up on code block with no recognized language

fixes mckaywrigley#416
meooxx pushed a commit to meooxx/chatbot-ui that referenced this pull request Apr 9, 2023
* update README regarding GOOGLE_API_KEY and GOOGLE_CSE_ID

* 🐛 fix copy button not showing up on code block with no recognized language

fixes mckaywrigley#416
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Copy code" button not appearing on codeblocks
3 participants