mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
fix: copied move and not hide tooltip
This commit is contained in:
@ -26,7 +26,7 @@ const CopyFeedbackNew = ({ content }: Props) => {
|
|||||||
}, 100)
|
}, 100)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='inline-flex pb-0.5' onClick={e => e.stopPropagation()}>
|
<div className='inline-flex pb-0.5' onClick={e => e.stopPropagation()} onMouseLeave={onMouseLeave}>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
popupContent={
|
popupContent={
|
||||||
(isCopied
|
(isCopied
|
||||||
@ -37,12 +37,11 @@ const CopyFeedbackNew = ({ content }: Props) => {
|
|||||||
<div
|
<div
|
||||||
className='group/copy flex items-center gap-0.5 '
|
className='group/copy flex items-center gap-0.5 '
|
||||||
onClick={onClickCopy}
|
onClick={onClickCopy}
|
||||||
onMouseLeave={onMouseLeave}
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className='system-2xs-regular cursor-pointer text-text-quaternary group-hover:text-text-tertiary'
|
className='system-2xs-regular cursor-pointer text-text-quaternary group-hover:text-text-tertiary'
|
||||||
>{content}</div>
|
>{content}</div>
|
||||||
<RiFileCopyLine className='hidden h-3 w-3 text-text-tertiary group-hover/copy:block' />
|
<RiFileCopyLine className='h-3 w-3 text-text-tertiary opacity-0 group-hover/copy:opacity-100' />
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user