mirror of https://github.com/langgenius/dify.git
fix: tool node text overflow
This commit is contained in:
parent
5b2c99e183
commit
f336245a45
|
|
@ -26,7 +26,7 @@ const CopyFeedbackNew = ({ content }: Props) => {
|
|||
}, 100)
|
||||
|
||||
return (
|
||||
<div className='inline-flex pb-0.5' onClick={e => e.stopPropagation()} onMouseLeave={onMouseLeave}>
|
||||
<div className='inline-flex w-full pb-0.5' onClick={e => e.stopPropagation()} onMouseLeave={onMouseLeave}>
|
||||
<Tooltip
|
||||
popupContent={
|
||||
(isCopied
|
||||
|
|
@ -35,13 +35,13 @@ const CopyFeedbackNew = ({ content }: Props) => {
|
|||
}
|
||||
>
|
||||
<div
|
||||
className='group/copy flex items-center gap-0.5 '
|
||||
className='group/copy flex w-full items-center gap-0.5 '
|
||||
onClick={onClickCopy}
|
||||
>
|
||||
<div
|
||||
className='system-2xs-regular cursor-pointer text-text-quaternary group-hover:text-text-tertiary'
|
||||
className='system-2xs-regular w-0 grow cursor-pointer truncate text-text-quaternary group-hover:text-text-tertiary'
|
||||
>{content}</div>
|
||||
<RiFileCopyLine className='h-3 w-3 text-text-tertiary opacity-0 group-hover/copy:opacity-100' />
|
||||
<RiFileCopyLine className='h-3 w-3 shrink-0 text-text-tertiary opacity-0 group-hover/copy:opacity-100' />
|
||||
</div>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue