From 86f15bc79c17a137e4fefc4961314c5185317ebd Mon Sep 17 00:00:00 2001 From: selfrelease Date: Mon, 31 Aug 2026 19:51:22 +0800 Subject: [PATCH] =?UTF-8?q?ux:=20=E5=AF=B9=E8=AF=9D=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E9=A1=B5=E6=89=8B=E6=9C=BA=E7=AB=AF=E4=BC=98=E5=8C=96(?= =?UTF-8?q?=E5=B8=83=E5=B1=80/=E6=8C=89=E9=92=AE/=E5=8D=A1=E7=89=87/?= =?UTF-8?q?=E6=B0=94=E6=B3=A1=E5=AE=BD=E5=BA=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web2/src/components/common/PageLayout.tsx | 6 ++-- web2/src/pages/ChatHistory.tsx | 39 +++++++++++------------ 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/web2/src/components/common/PageLayout.tsx b/web2/src/components/common/PageLayout.tsx index 9a2a632..74c6c8f 100644 --- a/web2/src/components/common/PageLayout.tsx +++ b/web2/src/components/common/PageLayout.tsx @@ -11,9 +11,9 @@ interface PageLayoutProps { export function PageLayout({ title, description, actions, children, className }: PageLayoutProps) { return ( -
-
-
+
+
+

{title}

{description &&

{description}

}
diff --git a/web2/src/pages/ChatHistory.tsx b/web2/src/pages/ChatHistory.tsx index 5cb3dcd..c67bb43 100644 --- a/web2/src/pages/ChatHistory.tsx +++ b/web2/src/pages/ChatHistory.tsx @@ -183,8 +183,8 @@ export function ChatHistory() { actions={
} > -
- -
-

{currentSession.title || '未命名对话'}

-
+
+ +
+

{currentSession.title || '未命名对话'}

+
{modeCfg.label} {currentSession.scene && ( @@ -212,8 +212,7 @@ export function ChatHistory() { )} - {formatTime(currentSession.first_message_at)} ~ {formatTime(currentSession.last_message_at)} - {' · '}{currentSession.message_count} 条消息 + {currentSession.message_count} 条 · {formatTime(currentSession.last_message_at)}
@@ -291,13 +290,13 @@ export function ChatHistory() { title="对话历史" description="普通模式可直接查看,保密模式需密码验证,阅后即焚不落库" actions={ -
+
{(['all', 'normal', 'confidential'] as const).map((m) => ( - + ) @@ -402,7 +401,7 @@ function MessageBubble({ message }: { message: HistoryMessage }) { const riskLevel = message.risk?.level return (
-
+
{/* 消息正文:用户消息纯文本,AI 消息 Markdown 渲染 */} {isUser ? (

{message.content}

@@ -440,7 +439,7 @@ function MessageBubble({ message }: { message: HistoryMessage }) { {!isUser && (
- 参考来源 + 参考来源
{message.meta?.rag_context && message.meta.rag_context.length > 0 ? (