diff --git a/app/components/chat/index.tsx b/app/components/chat/index.tsx index 0e1a6b9..15c7157 100644 --- a/app/components/chat/index.tsx +++ b/app/components/chat/index.tsx @@ -504,7 +504,7 @@ export default function Chat() { const conversationIntroduction = currConversationInfo?.introduction || ''; return ( - + {/* 侧边栏 */} diff --git a/app/styles/components/chat-with-llm/index.css b/app/styles/components/chat-with-llm/index.css index e2d079d..adbb2a6 100644 --- a/app/styles/components/chat-with-llm/index.css +++ b/app/styles/components/chat-with-llm/index.css @@ -2,8 +2,8 @@ /* 聊天容器 - 自适应布局 */ .chat-container { - height: 100%; - min-height: 100%; + /* height: 100%; */ + /* min-height: 100%; */ width: 100%; flex-direction: column; background: #fff; diff --git a/vite.config.ts b/vite.config.ts index 90f66dc..6971379 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -42,6 +42,8 @@ export default defineConfig({ // 防止依赖预构建时触发页面刷新导致路由中断 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'], }, });