mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-24 02:48:04 +00:00
fix(webui): 拓扑 +N 提示改用输出带顶部锚点,修提示串行
无输出通道的 agent 那条带上 outTop 在渲染时才确定,而提示行仍在用 循环变量 y(已累加到别的带),所以「+N 更多」会跑到隔壁带上。 改用该带自己的 outTop,并把基线从 +13 收到 +11(紧贴最后一行)。
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user