mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix (ui): is_copied true, disable hover state
This commit is contained in:
@@ -51,8 +51,9 @@ export default function CopyButton({
|
|||||||
'flex items-center justify-center rounded-full transition-colors duration-150 ease-in-out',
|
'flex items-center justify-center rounded-full transition-colors duration-150 ease-in-out',
|
||||||
padding,
|
padding,
|
||||||
`bg-[${bgColorLight}] dark:bg-[${bgColorDark}]`,
|
`bg-[${bgColorLight}] dark:bg-[${bgColorDark}]`,
|
||||||
`hover:bg-[${hoverBgColorLight}] dark:hover:bg-${hoverBgColorDark}`,
|
|
||||||
{
|
{
|
||||||
|
[`hover:bg-[${hoverBgColorLight}] dark:hover:bg-${hoverBgColorDark}`]:
|
||||||
|
!isCopied,
|
||||||
'bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900':
|
'bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900':
|
||||||
isCopied,
|
isCopied,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user