feat: polish trace nodes

This commit is contained in:
Fine 2024-07-17 14:40:54 +08:00
parent fe6e853c57
commit cc373a9798

View File

@ -218,14 +218,14 @@ export default class ListGraph {
.append("text")
.attr("x", 13)
.attr("y", 5)
.attr("fill", appStore.theme === Themes.Dark ? "#666" : "#E54C17")
.attr("fill", `#e54c17`)
.html((d: Recordable) => (d.data.isError ? "◉" : ""));
nodeEnter
.append("text")
.attr("class", "node-text")
.attr("x", 35)
.attr("y", -6)
.attr("fill", appStore.theme === Themes.Dark ? "#eee" : "#333")
.attr("fill", (d: Recordable) => (d.data.isError ? `#e54c17` : appStore.theme === Themes.Dark ? "#eee" : "#333"))
.html((d: Recordable) => {
if (d.data.label === "TRACE_ROOT") {
return "";