Skip to content

Commit

Permalink
improve padding
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Sep 5, 2024
1 parent a4a118e commit 8db2694
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/(main)/_components/CodeHighlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ language, children, ...rest }) =>
return (
<div className='relative'>
<IconButton
className='absolute top-0 right-0'
className='absolute top-[-12px] right-[-12px]'
onClick={handleCopy}
ariaLabel="Copy to clipboard"
>{!copied ?
(<ContentCopyIcon />)
(<ContentCopyIcon
className='w-5 h-5'
/>)
:
(<DoneIcon
className='w-5 h-5'
color='success'
/>)
}
Expand Down

0 comments on commit 8db2694

Please sign in to comment.