fix(webui): 拓扑 +N 提示改用输出带顶部锚点,修提示串行

无输出通道的 agent 那条带上 outTop 在渲染时才确定,而提示行仍在用
循环变量 y(已累加到别的带),所以「+N 更多」会跑到隔壁带上。
改用该带自己的 outTop,并把基线从 +13 收到 +11(紧贴最后一行)。
This commit is contained in:
JianFeeeee
2026-09-14 17:40:46 +08:00
parent 0fd4fb1f7a
commit 21db84e8dc

View File

@ -1032,7 +1032,7 @@
out.push('<path class="tp-edge tp-edge-out" d="' + d + '" stroke="' + a.color + '"/>');
});
if (a.outputs.length > MAX_OUT) {
out.push('<text class="tp-hint" x="' + OUT_X + '" y="' + (y + nout * ROW + 13) + '">+' + (a.outputs.length - MAX_OUT) + " " + __("更多", "more") + "</text>");
out.push('<text class="tp-hint" x="' + OUT_X + '" y="' + (outTop + nout * ROW + 11) + '">+' + (a.outputs.length - MAX_OUT) + " " + __("更多", "more") + "</text>");
}
y += bandH;
});