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 copy button in Code blocks #256

Merged
merged 4 commits into from
Jan 16, 2025
Merged

Fix copy button in Code blocks #256

merged 4 commits into from
Jan 16, 2025

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Jan 16, 2025

Closes #253

Screen.Recording.2025-01-16.at.12.54.19.mov

Comment on lines -12 to -19
<button class="copybtn o-tooltip--left" data-tooltip="Copy" data-clipboard-target="#codecell0">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#000000" fill="none" stroke-linecap="round" stroke-linejoin="round">
<title>Copy to clipboard</title>
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<rect x="8" y="8" width="12" height="12" rx="2"></rect>
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"></path>
</svg>
</button>
Copy link
Member Author

@reakaleek reakaleek Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not necessary; it is injected by the javascript.

@reakaleek reakaleek requested a review from Mpdreamz January 16, 2025 11:44
@reakaleek reakaleek added the fix label Jan 16, 2025
@reakaleek reakaleek mentioned this pull request Jan 16, 2025
3 tasks
@reakaleek reakaleek merged commit 174a7ab into main Jan 16, 2025
4 checks passed
@reakaleek reakaleek deleted the feature/fix-copy-button branch January 16, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code snippets are not copiable
2 participants