Skip to content

Commit

Permalink
fix(ui): #web-1764: fix copy button styles (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
VanishMax authored and grod220 committed Sep 20, 2024
1 parent 541b23e commit 0ddfe05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const CopyToClipboard = React.forwardRef<HTMLButtonElement, CopyToClipboardProps
<Button
className={cn(
copied && 'cursor-default text-teal-500 hover:no-underline',
'flex items-center justify-center',
'block px-0',
className,
)}
variant='link'
Expand All @@ -38,7 +38,7 @@ const CopyToClipboard = React.forwardRef<HTMLButtonElement, CopyToClipboardProps
>
{copied ? (
<span className={cn(isSuccessCopyText && 'flex items-center gap-2')}>
{isSuccessCopyText && <span>Copied</span>}
{isSuccessCopyText && <span className='whitespace-nowrap'>Copied</span>}
<CheckCircledIcon />
</span>
) : (
Expand Down

0 comments on commit 0ddfe05

Please sign in to comment.