@@ -12,7 +12,7 @@ import { useState } from "react";
1212import { invoke } from "@tauri-apps/api/core" ;
1313import type { AiEnrichResult , AiTaskRecord , AiTurn } from "../types" ;
1414import ChatMessageMarkdown , { truncatePreview } from "./ChatMessageMarkdown" ;
15- import { Text } from "../ui/primitives" ;
15+ import { Surface , Text } from "../ui/primitives" ;
1616
1717interface Props {
1818 task : AiTaskRecord ;
@@ -75,7 +75,7 @@ export default function TaskConversationView({ task, turns, refTitle, onOpenSess
7575 return (
7676 < div style = { { flex : 1 , minHeight : 0 , overflowY : "auto" , padding : "16px 20px" } } >
7777 { /* 任务卡 */ }
78- < div style = { { border : "1px solid #e5e7eb" , borderRadius : 10 , padding : "10px 14px" , marginBottom : 14 , background : "#fafafa" } } >
78+ < Surface level = "canvas" radius = "overlay" style = { { padding : "10px 14px" , marginBottom : 14 } } >
7979 < div style = { { display : "flex" , alignItems : "center" , gap : 10 , flexWrap : "wrap" } } >
8080 < span style = { { fontWeight : 700 , fontSize : 14 , color : "#111827" } } >
8181 { isRefine ? "✨ AI 精修" : "📚 AI 知识补充" } · { refTitle }
@@ -173,7 +173,7 @@ export default function TaskConversationView({ task, turns, refTitle, onOpenSess
173173 background : adoptMsg . startsWith ( "✅" ) ? "#ecfdf5" : "#fef2f2" ,
174174 } } > { adoptMsg } </ div >
175175 ) }
176- </ div >
176+ </ Surface >
177177
178178 { /* 成功结果预览(result_json → refinedMarkdown) */ }
179179 { task . state === "succeeded" && task . resultJson && (
@@ -185,9 +185,9 @@ export default function TaskConversationView({ task, turns, refTitle, onOpenSess
185185 { openResult ? "▾" : "▸" } 展开精修/补充结果
186186 </ button >
187187 { openResult && (
188- < div style = { { border : "1px solid #e5e7eb" , borderRadius : 8 , padding : "10px 14px" , marginTop : 6 , background : "#fcfcfd" , maxHeight : 420 , overflowY : "auto" } } >
188+ < Surface level = "canvas" style = { { padding : "10px 14px" , marginTop : 6 , maxHeight : 420 , overflowY : "auto" } } >
189189 < ChatMessageMarkdown content = { truncatePreview ( extractResultMarkdown ( task . resultJson ) ) } />
190- </ div >
190+ </ Surface >
191191 ) }
192192 </ div >
193193 ) }
@@ -207,11 +207,11 @@ export default function TaskConversationView({ task, turns, refTitle, onOpenSess
207207 { openTurns [ t . turn ] ? "▾" : "▸" } 第 { t . turn } 片对话(提示词 + 回答全文)
208208 </ button >
209209 { openTurns [ t . turn ] && (
210- < div style = { { border : "1px solid #e5e7eb" , borderRadius : 8 , marginTop : 6 , background : "#fcfcfd" } } >
210+ < Surface level = "canvas" style = { { marginTop : 6 } } >
211211 < TrajectoryBlock label = "🤖 提示词(system)" text = { t . system } mono />
212212 < TrajectoryBlock label = "📄 请求(user)" text = { t . user } mono />
213213 < TrajectoryBlock label = "✍️ 回答(assistant)" text = { truncatePreview ( t . response ) } mono />
214- </ div >
214+ </ Surface >
215215 ) }
216216 </ div >
217217 ) ) }
0 commit comments