Skip to content

Commit

Permalink
fix: revision styles for workflow (#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs authored May 30, 2024
1 parent 93d3350 commit 4308a79
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/.vscode/settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({
<PortalToFollowElem
open={open}
onOpenChange={setOpen}
placement='bottom-end'
placement='left'
offset={4}
>
<div className='relative'>
Expand Down
4 changes: 2 additions & 2 deletions web/app/components/workflow/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
4 changes: 2 additions & 2 deletions web/app/components/workflow/nodes/_base/components/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4308a79

Please sign in to comment.