fix: make the copy icon in the copy button for code blocks in light mode visible
Some checks failed
Deploy Next.js application / deploy (push) Has been cancelled
Some checks failed
Deploy Next.js application / deploy (push) Has been cancelled
This commit is contained in:
parent
cb4534e3b5
commit
712887d86e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export default function CopyButton({ code }: { code: string }) {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
onClick={copyCode}
|
onClick={copyCode}
|
||||||
className="absolute top-2 right-2 bg-accent hover:bg-muted text-white p-2 rounded"
|
className="absolute top-2 right-2 bg-accent hover:bg-muted p-2 rounded"
|
||||||
size={"icon"}
|
size={"icon"}
|
||||||
>
|
>
|
||||||
{copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />}
|
{copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />}
|
||||||
|
|
Loading…
Reference in a new issue