-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Added a copy to clipboard button to <pre> blocks for easy clipboard interaction #88
Conversation
Hi @reactorcoremeltdown Maybe something like this would fit a bit better (with you nice toast of course) : |
Thanks a lot for reviewing and for suggestions! Indeed, the button looks somewhat alien, so I'll give another try to https://clipboardjs.com/ BRB |
BTW, I'll have to be careful about mobile layouts, display on hover does not work well sometimes. |
So I think this looks much prettier. What's changed:
I hope that all makes sense! So far it looks and works good on both desktop and mobile layouts, but if you find anything that doesn't fit, please let me know! |
Thanks for the contribution, it works great! I changed the icon to something a little more modern in 925be59. |
Thank YOU for your patience, your support, and overall for such an amazing project! |
Summary
I find it really convenient to copy text from
<pre>
blocks directly to clipboard with a single button.Details
This pull request adds:
<pre>
blocks into clipboard using a buttonChecks
docs/<corresponding file>