mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-08 17:32:27 +08:00
fix: assistant answer pb
This commit is contained in:
18
app/components/base/streamdown-markdown.tsx
Normal file
18
app/components/base/streamdown-markdown.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
'use client'
|
||||
import { Streamdown } from 'streamdown'
|
||||
import 'katex/dist/katex.min.css'
|
||||
|
||||
interface StreamdownMarkdownProps {
|
||||
content: string
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function StreamdownMarkdown({ content, className = '' }: StreamdownMarkdownProps) {
|
||||
return (
|
||||
<div className={`streamdown-markdown ${className}`}>
|
||||
<Streamdown>{content}</Streamdown>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default StreamdownMarkdown
|
||||
@ -703,7 +703,7 @@ const Main: FC<IMainProps> = () => {
|
||||
|
||||
{
|
||||
hasSetInputs && (
|
||||
<div className='relative grow h-[200px] pc:w-[794px] max-w-full mobile:w-full pb-[66px] mx-auto mb-3.5 overflow-hidden'>
|
||||
<div className='relative grow h-[200px] pc:w-[794px] max-w-full mobile:w-full pb-[120px] mx-auto mb-3.5 overflow-hidden'>
|
||||
<div className='h-full overflow-y-auto' ref={chatListDomRef}>
|
||||
<Chat
|
||||
chatList={chatList}
|
||||
|
||||
Reference in New Issue
Block a user