mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 22:57:26 +08:00
fix: preview not full
This commit is contained in:
parent
8e4f0640cc
commit
0af0c94dde
@ -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)}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user