@@ -15,7 +15,7 @@ import { invoke } from "@tauri-apps/api/core";
1515import { confirm } from "@tauri-apps/plugin-dialog" ;
1616import type { KnowledgeNode , KnowledgeLink , KnowledgeNodeType } from "../types/knowledge" ;
1717import { nodeTypeColor , nodeTypeLabel } from "../types/knowledge" ;
18- import { Button , StatusLine } from "../ui/primitives" ;
18+ import { Button , StatusLine , Text } from "../ui/primitives" ;
1919
2020interface Props {
2121 systemId : number ;
@@ -179,7 +179,7 @@ export default function KnowledgeTreeView({ systemId, nodes, links, selectedNode
179179 < span style = { { flex : 1 , fontSize : 13 , color : "#374151" , overflow : "hidden" , textOverflow : "ellipsis" , whiteSpace : "nowrap" } } > { n . text } </ span >
180180 ) }
181181 { count > 0 && (
182- < span data-testid = { `node-ref-${ n . id } ` } style = { { fontSize : 11 , color : "#9ca3af" , whiteSpace : "nowrap" } } > { count } 引用</ span >
182+ < Text tone = "ink-3" testId = { `node-ref-${ n . id } ` } style = { { fontSize : 11 , whiteSpace : "nowrap" } } > { count } 引用</ Text >
183183 ) }
184184 { ! isEditing && (
185185 < span onClick = { ( e ) => e . stopPropagation ( ) } style = { { display : "inline-flex" , gap : 2 } } >
@@ -240,9 +240,9 @@ export default function KnowledgeTreeView({ systemId, nodes, links, selectedNode
240240 < div style = { { padding : "24px 20px" , textAlign : "center" } } >
241241 < div style = { { fontSize : 26 , marginBottom : 8 } } > 🌱</ div >
242242 < div style = { { fontSize : 14 , fontWeight : 600 , color : "#374151" , marginBottom : 6 } } > 从子问题开始</ div >
243- < p style = { { fontSize : 12 , color : "#9ca3af" , lineHeight : 1.7 , margin : "0 auto 12px" , maxWidth : 300 } } >
243+ < Text as = "p" size = { 5 } tone = "ink-3" style = { { lineHeight : 1.7 , margin : "0 auto 12px" , maxWidth : 300 } } >
244244 把卡住你的大问题拆成一个个能动手的子问题,每拆一层,就把它从"一团乱麻"变成"一条路径"。
245- </ p >
245+ </ Text >
246246 < button data-testid = "tree-add-root" onClick = { ( ) => startAdd ( null ) } style = { { fontSize : 13 , cursor : "pointer" , padding : "6px 14px" , borderRadius : 6 , border : "1px solid #0f766e" , background : "#f0fdfa" , color : "#0f766e" } } >
247247 + 添加根问题
248248 </ button >
@@ -276,9 +276,9 @@ export default function KnowledgeTreeView({ systemId, nodes, links, selectedNode
276276 { nodes . length === 0 && addDraft ?. parentId === null && (
277277 < div style = { { padding : "16px 8px 8px" , textAlign : "center" } } >
278278 < div style = { { fontSize : 20 , marginBottom : 6 } } > 🌱</ div >
279- < p style = { { fontSize : 12 , color : "#9ca3af" , lineHeight : 1.6 , margin : "0 0 10px" } } >
279+ < Text as = "p" size = { 5 } tone = "ink-3" style = { { lineHeight : 1.6 , margin : "0 0 10px" } } >
280280 写下第一个根问题,让它成为问题树的起点。
281- </ p >
281+ </ Text >
282282 </ div >
283283 ) }
284284
0 commit comments