feat: polish error nodes in trace widget (#404)

This commit is contained in:
Fine0830
2024-07-17 15:02:08 +08:00
committed by GitHub
parent fe6e853c57
commit 8f179f00a2
3 changed files with 6 additions and 4 deletions

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 "";