chat workflow run

This commit is contained in:
StyleZhang 2024-03-11 21:05:54 +08:00
parent bd52937c88
commit 0eb482f35b
3 changed files with 11 additions and 4 deletions

View File

@ -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}

View File

@ -1,14 +1,21 @@
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()}

View File

@ -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'}
`}
>
{