From 2b4c9cdcb94ae7d776b91e769fb7fdef59ec21f0 Mon Sep 17 00:00:00 2001 From: Raykosan <71210053+Raykosan@users.noreply.github.com> Date: Tue, 15 Sep 2026 01:29:51 +0300 Subject: [PATCH] Final modification of the RS Bypass Manager node interface --- web/rs_bypass.js | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/web/rs_bypass.js b/web/rs_bypass.js index a19b794..f97483e 100644 --- a/web/rs_bypass.js +++ b/web/rs_bypass.js @@ -190,15 +190,17 @@ app.registerExtension({ const prefix = isLastChild ? "└─ " : "├─ "; ctx.fillStyle = "#eee"; ctx.fillText(prefix, cursorX, y + h/2 + 4); - cursorX += ctx.measureText(prefix).width + 2; // +2 px дополнительного сдвига + cursorX += ctx.measureText(prefix).width + 2; } ctx.fillStyle = titleColor; ctx.fillText(title, cursorX, y + h/2 + 4); - ctx.fillStyle = "#ff6666"; - ctx.textAlign = "center"; - ctx.fillText("✕", removeX + removeW / 2, y + h/2 + 4); + if (!isChild) { + ctx.fillStyle = "#ff6666"; + ctx.textAlign = "center"; + ctx.fillText("✕", removeX + removeW / 2, y + h/2 + 4); + } return { toggle: toggleZone, @@ -494,15 +496,17 @@ app.registerExtension({ h: zones.toggle.h }); - self.clickZones.push({ - type: "remove", - itemType: item.type, - id: item.id, - x: zones.remove.x, - y: zones.remove.y, - w: zones.remove.w, - h: zones.remove.h - }); + if (!item.isChild) { + self.clickZones.push({ + type: "remove", + itemType: item.type, + id: item.id, + x: zones.remove.x, + y: zones.remove.y, + w: zones.remove.w, + h: zones.remove.h + }); + } }); const currentCount = displayItems.length;