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

@@ -64,7 +64,7 @@ export class ModelInstaller extends ComfyDialog {
createControls() {
return [
$el("button", {
$el("button.cm-small-button", {
type: "button",
textContent: "Close",
onclick: () => { this.close(); }
@@ -326,7 +326,7 @@ export class ModelInstaller extends ComfyDialog {
createHeaderControls() {
let self = this;
this.search_box = $el('input', {type:'text', id:'manager-model-search-box', placeholder:'input search keyword', value:this.search_keyword}, []);
this.search_box = $el('input.cm-search-filter', {type:'text', id:'manager-model-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') {
@@ -340,6 +340,7 @@ export class ModelInstaller 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;
@@ -363,6 +364,7 @@ export class ModelInstaller extends ComfyDialog {
async createBottomControls() {
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";