Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
0eb482f3
Commit
0eb482f3
authored
Mar 11, 2024
by
StyleZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chat workflow run
parent
bd52937c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
chat-wrapper.tsx
...ponents/workflow/panel/debug-and-preview/chat-wrapper.tsx
+1
-1
index.tsx
...app/components/workflow/panel/debug-and-preview/index.tsx
+9
-2
index.tsx
web/app/components/workflow/panel/index.tsx
+1
-1
No files found.
web/app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx
View file @
0eb482f3
...
...
@@ -33,7 +33,7 @@ const ChatWrapper = () => {
isResponding=
{
isResponding
}
chatContainerclassName=
'px-4'
chatContainerInnerClassName=
'pt-6'
chatFooterClassName=
'px-4'
chatFooterClassName=
'px-4
rounded-bl-2xl
'
chatFooterInnerClassName=
'pb-4'
onSend=
{
doSend
}
onStopResponding=
{
handleStop
}
...
...
web/app/components/workflow/panel/debug-and-preview/index.tsx
View file @
0eb482f3
import
type
{
FC
}
from
'react'
import
{
useTranslation
}
from
'react-i18next'
import
{
useStore
}
from
'../../store'
import
ChatWrapper
from
'./chat-wrapper'
const
DebugAndPreview
:
FC
=
()
=>
{
const
{
t
}
=
useTranslation
()
const
showRunHistory
=
useStore
(
s
=>
s
.
showRunHistory
)
return
(
<
div
className=
'flex flex-col w-[400px] h-full rounded-l-2xl border border-black/[0.02] shadow-xl'
style=
{
{
background
:
'linear-gradient(156deg, rgba(242, 244, 247, 0.80) 0%, rgba(242, 244, 247, 0.00) 99.43%), var(--white, #FFF)'
}
}
className=
{
`
flex flex-col h-full border border-black/[0.02] shadow-xl
${showRunHistory ? 'w-[320px] rounded-2xl' : 'w-[400px] rounded-l-2xl'}
`
}
style=
{
{
background
:
showRunHistory
?
'white'
:
'linear-gradient(156deg, rgba(242, 244, 247, 0.80) 0%, rgba(242, 244, 247, 0.00) 99.43%), var(--white, #FFF)'
,
}
}
>
<
div
className=
'shrink-0 flex items-center justify-between px-4 pt-3 pb-2 font-semibold text-gray-900'
>
{
t
(
'workflow.common.debugAndPreview'
).
toLocaleUpperCase
()
}
...
...
web/app/components/workflow/panel/index.tsx
View file @
0eb482f3
...
...
@@ -38,7 +38,7 @@ const Panel: FC = () => {
<
div
className=
{
`
absolute top-14 right-0 bottom-2 flex pr-2 z-10
${
showRunHistory
&& '!pr-0'}
${
(showRunHistory || showDebugAndPreviewPanel)
&& '!pr-0'}
`
}
>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment