mirror of
https://github.com/langgenius/dify.git
synced 2026-03-31 02:48:49 +08:00
chore: handle tool name copy
This commit is contained in:
@ -26,7 +26,7 @@ const CopyFeedbackNew = ({ content }: Props) => {
|
||||
}, 100)
|
||||
|
||||
return (
|
||||
<div className='group flex items-center gap-0.5 pb-0.5' onClick={e => e.stopPropagation()}>
|
||||
<div className='inline-flex pb-0.5' onClick={e => e.stopPropagation()}>
|
||||
<Tooltip
|
||||
popupContent={
|
||||
(isCopied
|
||||
@ -35,12 +35,16 @@ const CopyFeedbackNew = ({ content }: Props) => {
|
||||
}
|
||||
>
|
||||
<div
|
||||
className='system-2xs-regular cursor-pointer text-text-quaternary group-hover:text-text-tertiary'
|
||||
className='group/copy flex items-center gap-0.5 '
|
||||
onClick={onClickCopy}
|
||||
onMouseLeave={onMouseLeave}
|
||||
>{content}</div>
|
||||
>
|
||||
<div
|
||||
className='system-2xs-regular cursor-pointer text-text-quaternary group-hover:text-text-tertiary'
|
||||
>{content}</div>
|
||||
<RiFileCopyLine className='hidden h-3 w-3 text-text-tertiary group-hover/copy:block' />
|
||||
</div>
|
||||
</Tooltip>
|
||||
<RiFileCopyLine className='hidden h-3 w-3 text-text-tertiary group-hover:block' />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user