소스 검색

fix(ui): no hover effect in copy button of code node (#21671)

tags/1.5.1
Minamiyama 4 달 전
부모
커밋
0f23e3d9ab
No account linked to committer's email address
1개의 변경된 파일11개의 추가작업 그리고 9개의 파일을 삭제
  1. 11
    9
      web/app/components/workflow/nodes/_base/components/editor/base.tsx

+ 11
- 9
web/app/components/workflow/nodes/_base/components/editor/base.tsx 파일 보기

import useToggleExpend from '@/app/components/workflow/nodes/_base/hooks/use-toggle-expend' import useToggleExpend from '@/app/components/workflow/nodes/_base/hooks/use-toggle-expend'
import type { FileEntity } from '@/app/components/base/file-uploader/types' import type { FileEntity } from '@/app/components/base/file-uploader/types'
import FileListInLog from '@/app/components/base/file-uploader/file-list-in-log' import FileListInLog from '@/app/components/base/file-uploader/file-list-in-log'
import ActionButton from '@/app/components/base/action-button'


type Props = { type Props = {
className?: string className?: string
<CodeGeneratorButton onGenerated={onGenerated} codeLanguages={codeLanguages} /> <CodeGeneratorButton onGenerated={onGenerated} codeLanguages={codeLanguages} />
</div> </div>
)} )}
{!isCopied
? (
<Clipboard className='mx-1 h-3.5 w-3.5 cursor-pointer text-text-tertiary' onClick={handleCopy} />
)
: (
<ClipboardCheck className='mx-1 h-3.5 w-3.5 text-text-tertiary' />
)
}

<ActionButton className='ml-1' onClick={handleCopy}>
{!isCopied
? (
<Clipboard className='h-4 w-4 cursor-pointer' />
)
: (
<ClipboardCheck className='h-4 w-4' />
)
}
</ActionButton>
<div className='ml-1'> <div className='ml-1'>
<ToggleExpandBtn isExpand={isExpand} onExpandChange={setIsExpand} /> <ToggleExpandBtn isExpand={isExpand} onExpandChange={setIsExpand} />
</div> </div>

Loading…
취소
저장