@kerkhoff-ict/solora 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1753,7 +1753,9 @@ function initCodeblocks() {
1753
1753
  const minimizeBtn = block.querySelector(".minimize-btn");
1754
1754
  const preContent = block.querySelector(".pre-content");
1755
1755
  if (!pre || !preContent) return;
1756
- if (copyBtn) preContent.insertBefore(copyBtn, preContent.firstChild);
1756
+ if (copyBtn && copyBtn.classList.contains("btn-in-pre")) {
1757
+ preContent.insertBefore(copyBtn, preContent.firstChild);
1758
+ }
1757
1759
  if (copyBtn && !copyBtn.dataset.bound) {
1758
1760
  copyBtn.dataset.bound = "true";
1759
1761
  copyBtn.addEventListener("click", async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerkhoff-ict/solora",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Simple CSS component library",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/index.css",