Skip to content

Commit 8181364

Browse files
Add text label to LLM copy button and adjust styling
Co-authored-by: rahul.chhabria <[email protected]>
1 parent 602dfaa commit 8181364

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/copyForLLMButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ export default function CopyForLLMButton() {
4848
<button
4949
type="button"
5050
onClick={handleCopy}
51-
title={copied ? 'Copied!' : 'Copy page content for LLM'}
51+
title={copied ? 'Copied!' : 'Copy for LLM'}
5252
aria-label="Copy for LLM"
53-
className="float-right mr-[5px] 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 space-x-1 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
) : (
5959
<ClipboardCopyIcon width="24" height="24" />
6060
)}
61+
<span className="text-sm leading-none">{copied ? 'Copied' : 'Copy for LLM'}</span>
6162
</button>
6263

6364
{showToast &&

0 commit comments

Comments
 (0)