Integrate Streamdown and optimize chat layout

- Replace react-markdown with Streamdown for better streaming support
- Fix input box positioning with proper sidebar offset
- Optimize scrolling behavior with main container handling scroll
- Add max-width constraint for assistant messages
- Ensure proper spacing to prevent input box overlap

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
lyzno1
2025-09-10 22:58:00 +08:00
parent 2d426902bd
commit 672ad29e5d
2 changed files with 11 additions and 13 deletions

View File

@ -703,18 +703,16 @@ const Main: FC<IMainProps> = () => {
{
hasSetInputs && (
<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}
onSend={handleSend}
onFeedback={handleFeedback}
isResponding={isResponding}
checkCanSend={checkCanSend}
visionConfig={visionConfig}
fileConfig={fileConfig}
/>
</div>
<div className='relative grow pc:w-[794px] max-w-full mobile:w-full pb-[180px] mx-auto mb-3.5' ref={chatListDomRef}>
<Chat
chatList={chatList}
onSend={handleSend}
onFeedback={handleFeedback}
isResponding={isResponding}
checkCanSend={checkCanSend}
visionConfig={visionConfig}
fileConfig={fileConfig}
/>
</div>)
}
</div>