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 ? (