mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: revision styles for workflow (#4087)
This commit is contained in:
parent
93d3350c8c
commit
4308a79e89
2
web/.vscode/settings.example.json
vendored
2
web/.vscode/settings.example.json
vendored
|
@ -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]": {
|
||||||
|
|
|
@ -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'>
|
||||||
|
|
|
@ -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(() => {
|
||||||
|
|
|
@ -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 && (
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user