优化ai对话的内容区域的样式

This commit is contained in:
2025-06-06 16:32:04 +08:00
parent 417aaa8814
commit 7620bc4ba7
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ export default function Chat() {
const conversationIntroduction = currConversationInfo?.introduction || ''; const conversationIntroduction = currConversationInfo?.introduction || '';
return ( return (
<Layout style={{ height: '100%', minHeight: '100%' }}> <Layout style={{ height: '100%', minHeight: '100%'}}>
{/* 侧边栏 */} {/* 侧边栏 */}
<ChatSidebar <ChatSidebar
ref={sidebarRef} ref={sidebarRef}
+2 -3
View File
@@ -37,11 +37,10 @@ export default function ChatWithLLMIndex() {
return ( return (
<div className="flex-1 chat-container" style={{ <div className="flex-1 chat-container" style={{
height: 'calc(100vh - 80px)', height: 'calc(100vh - 80px)',
// height: '100vh',
borderRadius: '0.5rem', borderRadius: '0.5rem',
marginTop: '20px', marginTop: '20px',
marginBottom: '-20px', marginBottom: '-20px'
minHeight: '990px',
maxHeight: '89vh'
}}> }}>
<Chat /> <Chat />
</div> </div>
@@ -2,8 +2,8 @@
/* 聊天容器 - 自适应布局 */ /* 聊天容器 - 自适应布局 */
.chat-container { .chat-container {
height: 100%; /* height: 100%; */
min-height: 100%; /* min-height: 100%; */
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
background: #fff; background: #fff;
+3 -1
View File
@@ -42,6 +42,8 @@ export default defineConfig({
// 防止依赖预构建时触发页面刷新导致路由中断 // 防止依赖预构建时触发页面刷新导致路由中断
force: false, force: false,
// 预构建这些依赖,避免首次加载时出现重新构建 // 预构建这些依赖,避免首次加载时出现重新构建
include: ['react-pdf', 'pdfjs-dist', 'dayjs', '@remix-run/node', 'react-dom', 'axios', 'dayjs/plugin/utc', 'react-router-dom', 'jszip', 'ahooks', 'antd', 'immer', '@ant-design/icons'], include: ['react-pdf', 'pdfjs-dist', 'dayjs', '@remix-run/node',
'react-dom', 'axios', 'dayjs/plugin/utc', 'react-router-dom', 'jszip', 'ahooks', 'antd', 'immer', '@ant-design/icons',
'react-markdown', 'remark-math', 'remark-breaks', 'rehype-katex', 'remark-gfm'],
}, },
}); });