From f81ff2efe9df1d389160dcf5544fa6dbfe561a51 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Sun, 9 Nov 2025 18:02:57 +0800 Subject: [PATCH] feat: remove strength-based styling from tags widget Remove visual styling for tags with modified strength values. The gold border and gradient background were previously applied to tags with strength values other than 1.0, but this visual distinction is no longer needed. This simplifies the tag styling logic and maintains consistent appearance across all tags regardless of their strength values. --- web/comfyui/tags_widget.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/web/comfyui/tags_widget.js b/web/comfyui/tags_widget.js index 79968d25..f595ab60 100644 --- a/web/comfyui/tags_widget.js +++ b/web/comfyui/tags_widget.js @@ -229,14 +229,6 @@ export function addTagsWidget(node, name, opts, callback, wheelSensitivity = 0.0 backgroundImage: "none", }; - // Additional styles for tags with modified strength - const strengthStyles = (strength !== null && strength !== undefined && strength !== 1.0) - ? { - border: "1px solid rgba(255, 215, 0, 0.7)", // Gold border for modified strength - backgroundImage: "linear-gradient(120deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05))", - } - : {}; - if (active) { Object.assign(tagEl.style, { ...baseStyles, @@ -244,7 +236,6 @@ export function addTagsWidget(node, name, opts, callback, wheelSensitivity = 0.0 color: "white", borderColor: "rgba(66, 153, 225, 0.9)", ...highlightStyles, - ...strengthStyles, }); } else { Object.assign(tagEl.style, { @@ -253,7 +244,6 @@ export function addTagsWidget(node, name, opts, callback, wheelSensitivity = 0.0 color: "rgba(226, 232, 240, 0.8)", borderColor: "rgba(226, 232, 240, 0.2)", ...highlightStyles, - ...strengthStyles, }); }