chore: llm editor bg and not flash

This commit is contained in:
Joel 2024-03-29 18:32:49 +08:00
parent 7c45f369d1
commit 8a2d04b305
2 changed files with 3 additions and 4 deletions

View File

@ -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'>

View File

@ -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>