Unverified Commit 42cd93cf authored by Stephen Zhou's avatar Stephen Zhou Committed by GitHub

fix: show copy button on hover (#1002)

parent 4a7b764a
......@@ -29,9 +29,9 @@ const renderer = (rawStr: string) => {
};
return (
<pre>
<pre className="group">
<button
className="text-xs font-mono italic absolute top-0 right-0 px-2 leading-6 border btn-text rounded opacity-60"
className="text-xs font-mono italic absolute top-0 right-0 px-2 leading-6 border btn-text rounded opacity-0 group-hover:opacity-60"
onClick={handleCopyButtonClick}
>
copy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment