fix: revision styles for workflow (#4087)

This commit is contained in:
Whitewater 2024-05-30 19:10:14 +08:00 committed by GitHub
parent 93d3350c8c
commit 4308a79e89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 7 deletions

View File

@ -2,7 +2,7 @@
"prettier.enable": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.format.enable": true,
"[python]": {

View File

@ -152,7 +152,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({
<PortalToFollowElem
open={open}
onOpenChange={setOpen}
placement='bottom-end'
placement='left'
offset={4}
>
<div className='relative'>

View File

@ -88,13 +88,13 @@ const Header: FC = () => {
const handleShowFeatures = useCallback(() => {
const {
showFeaturesPanel,
isRestoring,
setShowFeaturesPanel,
} = workflowStore.getState()
if (getNodesReadOnly() && !isRestoring)
return
setShowFeaturesPanel(true)
setShowFeaturesPanel(!showFeaturesPanel)
}, [workflowStore, getNodesReadOnly])
const handleCancelRestore = useCallback(() => {

View File

@ -31,10 +31,10 @@ const Filed: FC<Props> = ({
toggle: toggleFold,
}] = useBoolean(true)
return (
<div className={cn(className, inline && 'flex justify-between items-center', supportFold && 'cursor-pointer')}>
<div className={cn(className, inline && 'flex justify-between items-center')}>
<div
onClick={() => supportFold && toggleFold()}
className='flex justify-between items-center'>
className={cn('flex justify-between items-center', supportFold && 'cursor-pointer')}>
<div className='flex items-center h-6'>
<div className='text-[13px] font-medium text-gray-700 uppercase'>{title}</div>
{tooltip && (

View File

@ -50,7 +50,10 @@ type Props = {
canSetRoleName?: boolean
}
const MEMORY_DEFAULT: Memory = { window: { enabled: false, size: WINDOW_SIZE_DEFAULT } }
const MEMORY_DEFAULT: Memory = {
window: { enabled: false, size: WINDOW_SIZE_DEFAULT },
query_prompt_template: '',
}
const MemoryConfig: FC<Props> = ({
className,