Commit 0eb482f3 authored by StyleZhang's avatar StyleZhang

chat workflow run

parent bd52937c
......@@ -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}
......
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()}
......
......@@ -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'}
`}
>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment