diff --git a/__init__.py b/__init__.py index d3a0b24..ef50a47 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,6 @@ from .use_everywhere import SeedEverywhere, AnythingEverywherePrompts -UE_VERSION = "5.0.2" +UE_VERSION = "5.0.3" NODE_CLASS_MAPPINGS = { "Seed Everywhere": SeedEverywhere } diff --git a/js/ue.css b/js/ue.css index 0b57908..cadf978 100644 --- a/js/ue.css +++ b/js/ue.css @@ -36,4 +36,8 @@ margin: 0px; width: 100%; float: right; +} + +ue_hide { + display: none; } \ No newline at end of file diff --git a/js/use_everywhere_autoprompt.js b/js/use_everywhere_autoprompt.js index 37f236f..b12a359 100644 --- a/js/use_everywhere_autoprompt.js +++ b/js/use_everywhere_autoprompt.js @@ -76,7 +76,7 @@ function getClipPath(node, element) { function active_text_widget(node, inputname) { const label = document.createElement("label"); label.className = "graphdialog ueprompt"; - label.style.display = "none"; + const label_text = document.createElement("span"); label_text.innerText = `${inputname.substring(0,5)} `; @@ -108,7 +108,9 @@ function active_text_widget(node, inputname) { } } }); - widget.element.hidden = true; + //widget.element.hidden = true; + //widget.element.classList.add("ue_hide") + widget.element.style.display="block" inputEl.onmousedown = function(e) { const x = app.canvas.prompt("Value",widget.value,function(v) { this.value = v; }.bind(widget), e, false ); @@ -140,7 +142,7 @@ function active_text_widget(node, inputname) { node.widgets?.forEach((widget) => { if (widget.element) { widget.element.hidden = true; - widget.element.style.display = "none"; + widget.element.classList.add("ue_hide") } }) } @@ -151,13 +153,13 @@ function active_text_widget(node, inputname) { function activate(node, widget) { if (node.flags?.collapsed) return; widget.element.hidden = false; - widget.element.style.display = ""; + widget.element.classList.remove("ue_hide") } function add_autoprompts() { const STRING = ComfyWidgets.STRING; ComfyWidgets.STRING = function (node, inputName, inputData, app) { - if (!is_UEnode(node) || !inputName?.includes("regex") || !app.ui.settings.getSettingValue('AE.autoprompt', true)) { + if (true || !is_UEnode(node) || !inputName?.includes("regex") || !app.ui.settings.getSettingValue('AE.autoprompt', true)) { return STRING.apply(this, arguments); } const atw = active_text_widget(node, inputName); diff --git a/pyproject.toml b/pyproject.toml index 094caae..7535918 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "cg-use-everywhere" description = "A set of nodes that allow data to be 'broadcast' to some or all unconnected inputs. Greatly reduces link spaghetti." -version = "5.0.2" +version = "5.0.3" license = { file = "LICENSE" } [project.urls]