fix: preview not full

This commit is contained in:
Joel 2025-10-24 10:52:05 +08:00
parent 8e4f0640cc
commit 0af0c94dde
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const FlowAppPreview: FC<Props> = ({
if (!data)
return null
return (
<div className='w-full'>
<div className='h-full w-full'>
<WorkflowPreview
{...data.graph}
className={cn(className)}

View File

@ -16,6 +16,8 @@ const Preview: FC<Props> = ({
}) => {
const isBasicApp = ['agent-chat', 'chat', 'completion'].includes(appDetail.mode)
return isBasicApp ? <BasicAppPreview appId={appId} /> : <FlowAppPreview appId={appId} className='h-[80vh]' />
return <div className='h-full w-full'>
{isBasicApp ? <BasicAppPreview appId={appId} /> : <FlowAppPreview appId={appId} className='h-full' />}
</div>
}
export default React.memo(Preview)