fix: 优化markdown解析器
This commit is contained in:
parent
0a50700e4b
commit
16ca52fa27
|
|
@ -357,12 +357,11 @@ export const ChatInterface: React.FC<ChatInterfaceProps> = ({
|
||||||
}, [selectedTags]);
|
}, [selectedTags]);
|
||||||
|
|
||||||
return (
|
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
|
<div
|
||||||
ref={chatContainerRef}
|
ref={chatContainerRef}
|
||||||
className="flex-1 overflow-y-auto p-4 space-y-6 bg-transparent pb-32 chat-scroll"
|
className="flex-1 overflow-y-auto p-4 space-y-6 bg-transparent chat-scroll pb-4"
|
||||||
style={{ marginBottom: allTags.length > 0 ? '200px' : '120px' }}
|
|
||||||
>
|
>
|
||||||
{messages.length === 0 ? (
|
{messages.length === 0 ? (
|
||||||
<div className="flex flex-col items-center justify-center h-full text-center">
|
<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 && (
|
{allTags.length > 0 && (
|
||||||
<div className="border-b border-gray-100 bg-gradient-to-r from-pink-50 to-purple-50">
|
<div className="border-b border-gray-100 bg-gradient-to-r from-pink-50 to-purple-50">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue