chore: workflow syncing modal (#5108)

This commit is contained in:
zxhlyh
2024-06-12 16:35:19 +08:00
committed by GitHub
parent 0ce97e6315
commit 95443bd551
8 changed files with 48 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ import TooltipPlus from '@/app/components/base/tooltip-plus'
import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars'
import Switch from '@/app/components/base/switch'
import { Jinja } from '@/app/components/base/icons/src/vender/workflow'
import { useStore } from '@/app/components/workflow/store'
type Props = {
className?: string
@@ -82,6 +83,7 @@ const Editor: FC<Props> = ({
}) => {
const { t } = useTranslation()
const { eventEmitter } = useEventEmitterContextContext()
const controlPromptEditorRerenderKey = useStore(s => s.controlPromptEditorRerenderKey)
const isShowHistory = !isChatModel && isChatApp
@@ -173,6 +175,7 @@ const Editor: FC<Props> = ({
? (
<div className={cn(isExpand ? 'grow' : 'max-h-[536px]', 'relative px-3 min-h-[56px] overflow-y-auto')}>
<PromptEditor
key={controlPromptEditorRerenderKey}
instanceId={instanceId}
compact
className='min-h-[56px]'