refactor: update auto scroll mechanism (#970)
This commit is contained in:
parent
1fd2302914
commit
45978c27a2
13 changed files with 250 additions and 52 deletions
|
|
@ -26,7 +26,7 @@ import { codeArtifact } from '@/artifacts/code/client';
|
|||
import { sheetArtifact } from '@/artifacts/sheet/client';
|
||||
import { textArtifact } from '@/artifacts/text/client';
|
||||
import equal from 'fast-deep-equal';
|
||||
import { UseChatHelpers } from '@ai-sdk/react';
|
||||
import type { UseChatHelpers } from '@ai-sdk/react';
|
||||
|
||||
export const artifactDefinitions = [
|
||||
textArtifact,
|
||||
|
|
@ -309,7 +309,7 @@ function PureArtifact({
|
|||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
<div className="flex flex-col h-full justify-between items-center gap-4">
|
||||
<div className="flex flex-col h-full justify-between items-center">
|
||||
<ArtifactMessages
|
||||
chatId={chatId}
|
||||
status={status}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue