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, "prettier.enable": false,
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true "source.fixAll.eslint": "explicit"
}, },
"eslint.format.enable": true, "eslint.format.enable": true,
"[python]": { "[python]": {

View File

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

View File

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

View File

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

View File

@ -50,7 +50,10 @@ type Props = {
canSetRoleName?: boolean 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> = ({ const MemoryConfig: FC<Props> = ({
className, className,