We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3ad26 commit 5acef97Copy full SHA for 5acef97
layouts/partials/scripts.html
@@ -7,8 +7,12 @@
7
document.querySelectorAll('div.highlight').forEach(block => {
8
// Create a wrapper for the button and message
9
const wrapper = document.createElement('div');
10
- wrapper.style = 'position:absolute;top:10px;right:10px;z-index:1;display:flex;align-items:center;gap:6px;';
11
+ if (block.parentElement.classList.contains("expand-content")) {
12
+ wrapper.style = 'position:absolute;top:10px;right:20px;z-index:1;display:flex;align-items:center;gap:6px;';
13
+ } else {
14
+ wrapper.style = 'position:absolute;top:10px;right:10px;z-index:1;display:flex;align-items:center;gap:6px;';
15
+ }
16
// Create the copy button
17
const button = document.createElement('button');
18
button.innerHTML = `
0 commit comments