Close canvas while streaming (#500)
This commit is contained in:
parent
24fdf181bc
commit
6801f3a236
4 changed files with 16 additions and 8 deletions
|
|
@ -56,9 +56,11 @@ export function useCanvasStream({
|
|||
...draftCanvas,
|
||||
content: draftCanvas.content + (delta.content as string),
|
||||
isVisible:
|
||||
draftCanvas.status === 'streaming'
|
||||
draftCanvas.status === 'streaming' &&
|
||||
draftCanvas.content.length > 200 &&
|
||||
draftCanvas.content.length < 250
|
||||
? true
|
||||
: draftCanvas.content.length > 200,
|
||||
: draftCanvas.isVisible,
|
||||
status: 'streaming',
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue