mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-18 22:10:03 +00:00
lil fix
This commit is contained in:
@@ -253,6 +253,11 @@
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.graphdialog .helper {
|
||||
overflow: auto;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.graphdialog .help-item {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
@@ -5849,15 +5849,21 @@ LGraphCanvas.prototype.showSearchBox = function(event)
|
||||
|
||||
function changeSelection( forward )
|
||||
{
|
||||
var prev = selected;
|
||||
if(selected)
|
||||
selected.classList.remove("selected");
|
||||
if(!selected)
|
||||
selected = helper.childNodes[0];
|
||||
selected = forward ? helper.childNodes[0] : helper.childNodes[ helper.childNodes.length ];
|
||||
else
|
||||
{
|
||||
selected = forward ? selected.nextSibling : selected.previousSibling;
|
||||
if(!selected)
|
||||
selected = prev;
|
||||
}
|
||||
if(!selected)
|
||||
return;
|
||||
selected.classList.add("selected");
|
||||
selected.scrollIntoView();
|
||||
}
|
||||
|
||||
function refreshHelper()
|
||||
|
||||
Reference in New Issue
Block a user