fix: 优化markdown解析器

This commit is contained in:
imeepos 2025-07-22 17:29:21 +08:00
parent 0a50700e4b
commit 16ca52fa27
1 changed files with 3 additions and 4 deletions

View File

@ -357,12 +357,11 @@ export const ChatInterface: React.FC<ChatInterfaceProps> = ({
}, [selectedTags]);
return (
<div className={`flex flex-col h-full enhanced-chat-interface rounded-xl shadow-lg border border-gray-200 ${className} relative`}>
<div className={`flex flex-col h-full enhanced-chat-interface rounded-xl shadow-lg border border-gray-200 ${className}`}>
{/* 聊天消息区域 */}
<div
ref={chatContainerRef}
className="flex-1 overflow-y-auto p-4 space-y-6 bg-transparent pb-32 chat-scroll"
style={{ marginBottom: allTags.length > 0 ? '200px' : '120px' }}
className="flex-1 overflow-y-auto p-4 space-y-6 bg-transparent chat-scroll pb-4"
>
{messages.length === 0 ? (
<div className="flex flex-col items-center justify-center h-full text-center">
@ -423,7 +422,7 @@ export const ChatInterface: React.FC<ChatInterfaceProps> = ({
)}
{/* 固定底部输入区域 */}
<div className="absolute bottom-0 left-0 right-0 bg-white border-t border-gray-200 rounded-b-xl">
<div className="flex-shrink-0 bg-white border-t border-gray-200 rounded-b-xl">
{/* 标签选择区域 */}
{allTags.length > 0 && (
<div className="border-b border-gray-100 bg-gradient-to-r from-pink-50 to-purple-50">