Skip to content

Commit fad3204

Browse files
committed
fix: apply bot code suggestions
1 parent 8755771 commit fad3204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website_and_docs/layouts/shortcodes/gh-codeblock.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<div style="padding: 20px; border-bottom: 1px solid #dee2e6; display: flex; justify-content: space-between; align-items: center;">
6565
<h5 style="margin: 0;">{{ $path }}</h5>
6666
<div>
67-
<button onclick="copyCode('{{ $uniqueId }}')" style="margin-right: 10px; padding: 5px 10px; border: 1px solid #007bff; background: #007bff; color: white; border-radius: 4px; cursor: pointer;">
67+
<button onclick="copyCode('{{ $uniqueId }}', event)" style="margin-right: 10px; padding: 5px 10px; border: 1px solid #007bff; background: #007bff; color: white; border-radius: 4px; cursor: pointer;">
6868
Copy
6969
</button>
7070
<button onclick="closeCodeModal('{{ $uniqueId }}')" style="padding: 5px 10px; border: 1px solid #6c757d; background: #6c757d; color: white; border-radius: 4px; cursor: pointer;">
@@ -89,7 +89,7 @@ <h5 style="margin: 0;">{{ $path }}</h5>
8989
document.body.style.overflow = '';
9090
};
9191

92-
window.copyCode = window.copyCode || function(id) {
92+
window.copyCode = window.copyCode || function(id, event) {
9393
const codeElement = document.getElementById('codeContent_' + id);
9494
const code = codeElement.textContent;
9595

0 commit comments

Comments
 (0)