layout update

This commit is contained in:
Dr.Lt.Data
2023-12-07 20:49:28 +09:00
parent 1eb1affd25
commit 720974b118
7 changed files with 38 additions and 12 deletions

View File

@@ -669,7 +669,7 @@ export class CustomNodesInstaller extends ComfyDialog {
createHeaderControls() {
let self = this;
this.search_box = $el('input', {type:'text', id:'manager-customnode-search-box', placeholder:'input search keyword', value:this.search_keyword}, []);
this.search_box = $el('input.cm-search-filter', {type:'text', id:'manager-customnode-search-box', placeholder:'input search keyword', value:this.search_keyword}, []);
this.search_box.style.height = "25px";
this.search_box.onkeydown = (event) => {
if (event.key === 'Enter') {
@@ -684,6 +684,7 @@ export class CustomNodesInstaller extends ComfyDialog {
let search_button = document.createElement("button");
search_button.className = "cm-small-button";
search_button.innerHTML = "Search";
search_button.onclick = () => {
self.search_keyword = self.search_box.value;
@@ -714,7 +715,8 @@ export class CustomNodesInstaller extends ComfyDialog {
}
async createBottomControls() {
let close_button = document.createElement("button");
var close_button = document.createElement("button");
close_button.className = "cm-small-button";
close_button.innerHTML = "Close";
close_button.onclick = () => { this.close(); }
close_button.style.display = "inline-block";