Skip to content

Commit

Permalink
fix: copy to clipboard button top margin
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabhag8848 committed Aug 9, 2024
1 parent 36a4d91 commit d7502a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function CopyToClipboard({ value, height = 'auto' }: CopyToClipboardProps
<code>{value}</code>
</pre>
<button
className="absolute end-2 top-2 rounded-lg p-2 inline-flex hover:bg-gray-25 items-center justify-center revert-focus-outline"
className="absolute end-2 top-1 rounded-lg p-2 inline-flex hover:bg-gray-25 items-center justify-center revert-focus-outline"
onClick={() => clipboard.copy(value)}
>
{clipboard.copied ? <Icons.success /> : <Icons.copy />}
Expand Down

0 comments on commit d7502a0

Please sign in to comment.