Skip to content

Commit f1cb545

Browse files
Update CopyForLLMButton with ClipboardCopyIcon and minor margin adjustment
Co-authored-by: rahul.chhabria <[email protected]>
1 parent 14f0bc9 commit f1cb545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/copyForLLMButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import {useState, useCallback, Fragment} from 'react';
66

7-
import {CopyIcon, CheckIcon} from '@radix-ui/react-icons';
7+
import {ClipboardCopyIcon, CheckIcon} from '@radix-ui/react-icons';
88
import {createPortal} from 'react-dom';
99

1010
/**
@@ -50,13 +50,13 @@ export default function CopyForLLMButton() {
5050
onClick={handleCopy}
5151
title={copied ? 'Copied!' : 'Copy page content for LLM'}
5252
aria-label="Copy for LLM"
53-
className="float-right mr-2 flex items-center justify-center text-[var(--gray-12)] hover:text-[var(--accent)] focus:outline-none"
53+
className="float-right mr-[5px] flex items-center justify-center text-[var(--gray-12)] hover:text-[var(--accent)] focus:outline-none"
5454
data-mdast="ignore"
5555
>
5656
{copied ? (
5757
<CheckIcon width="24" height="24" />
5858
) : (
59-
<CopyIcon width="24" height="24" />
59+
<ClipboardCopyIcon width="24" height="24" />
6060
)}
6161
</button>
6262

0 commit comments

Comments
 (0)