From 349d845e3688e4fb616ee112d992632c09ba6eb7 Mon Sep 17 00:00:00 2001 From: fechin Date: Mon, 6 Mar 2023 16:04:41 +0800 Subject: [PATCH] Added a plugin for copy code block --- themes/coo/layout/_partial/scripts.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/coo/layout/_partial/scripts.ejs b/themes/coo/layout/_partial/scripts.ejs index d0adcec..41c0302 100644 --- a/themes/coo/layout/_partial/scripts.ejs +++ b/themes/coo/layout/_partial/scripts.ejs @@ -45,7 +45,7 @@ codeBlocks.forEach(function (codeBlock) { // Create a copy button element const copyButton = document.createElement('button'); - copyButton.className = 'bg-emerald-500 p-2 text-white fadeIn shadow-xl rounded flex items-center absolute top-0 right-4'; + copyButton.className = 'bg-emerald-500 p-2 text-white fadeIn shadow-xl rounded flex items-center absolute top-2 right-2'; copyButton.innerHTML = initInnerHTML; copyButton.style.opacity = "0"; const parent = codeBlock.parentNode;