diff --git a/web/src/app/(main)/function/tasks/detail/_tabs/coverage-graph-tab.tsx b/web/src/app/(main)/function/tasks/detail/_tabs/coverage-graph-tab.tsx index 3937987..d88cbec 100644 --- a/web/src/app/(main)/function/tasks/detail/_tabs/coverage-graph-tab.tsx +++ b/web/src/app/(main)/function/tasks/detail/_tabs/coverage-graph-tab.tsx @@ -667,7 +667,7 @@ function GraphInner({ taskId, coverageEnabled = true }: { taskId: string; covera labelBackgroundRadius: 3, labelPadding: [1, 3], opacity: (d: unknown) => - gDataRef.current.nodes.some((node) => node.active) && !nd(d).active ? 0.28 : 1, + gDataRef.current.nodes.some((node) => node.active) && !nd(d).active ? 0.5 : 1, }, }, edge: { @@ -708,6 +708,7 @@ function GraphInner({ taskId, coverageEnabled = true }: { taskId: string; covera cursor = parents.get(cursor); } setActivePath(lineage); + void graph?.focusElement(lineage); }); graphRef.current = graph; applyData(); @@ -856,7 +857,15 @@ function GraphInner({ taskId, coverageEnabled = true }: { taskId: string; covera