From 22f7ec39c55389189d2b6c9eba08c59c6816b721 Mon Sep 17 00:00:00 2001 From: thzxx Date: Sat, 27 Jun 2026 22:54:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E5=9D=97=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=B8=8D=E5=8F=AF=E8=A7=81=20=E2=80=94=20=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=20highlight.js=20atom-one-dark=20=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/ChatInput.tsx | 2 +- src/components/chat/MessageList.tsx | 8 ++++---- src/styles/globals.css | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsx index 3cb307b..4d2b3e4 100644 --- a/src/components/chat/ChatInput.tsx +++ b/src/components/chat/ChatInput.tsx @@ -248,7 +248,7 @@ export function ChatInput(): React.JSX.Element { onPaste={handlePaste} placeholder="输入消息... (Enter 发送, Ctrl+Enter 换行, / 命令)" disabled={isStreaming} rows={1} - style={{ width: '100%', background: 'transparent', border: 'none', outline: 'none', color: 'inherit', fontSize: 14, lineHeight: '28px', resize: 'none', fontFamily: 'inherit', minHeight: 36, maxHeight: 160 }} + style={{ width: '100%', background: 'transparent', border: 'none', outline: 'none', color: 'inherit', fontSize: 14, lineHeight: '28px', resize: 'none', fontFamily: 'inherit', minHeight: 42, maxHeight: 160 }} /> diff --git a/src/components/chat/MessageList.tsx b/src/components/chat/MessageList.tsx index 1c6c3a0..3a9b64b 100644 --- a/src/components/chat/MessageList.tsx +++ b/src/components/chat/MessageList.tsx @@ -20,10 +20,10 @@ export function MessageList(): React.JSX.Element { return ( - - MetonaAI Desktop - 生产级通用 AI Agent 智能体桌面应用 - Agent 就绪 · 选择一个 Provider 开始对话 + + MetonaAI Desktop + 生产级通用 AI Agent 智能体桌面应用 + Agent 就绪 · 选择一个 Provider 开始对话 ); diff --git a/src/styles/globals.css b/src/styles/globals.css index 4c05b07..9a90305 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -1,4 +1,5 @@ @import "tailwindcss"; +@import "highlight.js/styles/atom-one-dark.css"; /* ===== MetonaAI Desktop — 全局样式 ===== */