mirror of https://github.com/langgenius/dify.git
chore: llm editor bg and not flash
This commit is contained in:
parent
7c45f369d1
commit
8a2d04b305
|
|
@ -77,8 +77,8 @@ const Editor: FC<Props> = ({
|
|||
|
||||
return (
|
||||
<div className={cn(wrapClassName)}>
|
||||
<div ref={ref} className={cn(isFocus && s.gradientBorder, isExpand && 'h-full', '!rounded-[9px]')}>
|
||||
<div className={cn(isFocus ? 'bg-white' : 'bg-gray-100', isExpand && 'h-full flex flex-col', 'rounded-lg')}>
|
||||
<div ref={ref} className={cn(isFocus ? s.gradientBorder : 'bg-gray-100', isExpand && 'h-full', '!rounded-[9px] p-0.5')}>
|
||||
<div className={cn(isFocus ? 'bg-gray-50' : 'bg-gray-100', isExpand && 'h-full flex flex-col', 'rounded-lg')}>
|
||||
<div className='pt-1 pl-3 pr-2 flex justify-between h-6 items-center'>
|
||||
<div className='leading-4 text-xs font-semibold text-gray-700 uppercase'>{title}</div>
|
||||
<div className='flex items-center'>
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@ const EditBody: FC<Props> = ({
|
|||
list: body,
|
||||
setList: setBody,
|
||||
addItem: addBody,
|
||||
isKeyValueEdit: isBodyKeyValueEdit,
|
||||
toggleIsKeyValueEdit: toggleIsBodyKeyValueEdit,
|
||||
} = useKeyValueList(payload.data, (value) => {
|
||||
const newBody = produce(payload, (draft: Body) => {
|
||||
draft.data = value
|
||||
|
|
@ -151,6 +149,7 @@ const EditBody: FC<Props> = ({
|
|||
onChange={handleBodyValueChange}
|
||||
justVar
|
||||
nodesOutputVars={availableVarList}
|
||||
readOnly={readonly}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue