Increase delay when typing, remove margin on Safari, fix dialog location

This commit is contained in:
pythongosssss 2024-05-04 13:49:57 +01:00
parent 35ff8d4877
commit 5df9838aa7
4 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@ export class ComfyAsyncDialog extends ComfyDialog {
constructor(actions) { constructor(actions) {
super( super(
"dialog.comfy-dialog", "dialog.comfy-dialog.comfyui-dialog",
actions?.map((opt) => { actions?.map((opt) => {
if (typeof opt === "string") { if (typeof opt === "string") {
opt = { text: opt }; opt = { text: opt };

View File

@ -18,6 +18,7 @@
border-radius: 4px; border-radius: 4px;
padding: 4px 8px; padding: 4px 8px;
box-sizing: border-box; box-sizing: border-box;
margin: 0;
} }
.comfyui-button:disabled { .comfyui-button:disabled {

View File

@ -474,7 +474,7 @@ export class ComfyWorkflowsContent {
oninput: (e) => { oninput: (e) => {
this.filterText = e.target["value"]?.trim(); this.filterText = e.target["value"]?.trim();
clearTimeout(typingTimeout); clearTimeout(typingTimeout);
typingTimeout = setTimeout(() => this.filterTree(), 100); typingTimeout = setTimeout(() => this.filterTree(), 250);
}, },
}), }),
]), ]),

View File

@ -403,6 +403,10 @@ dialog::backdrop {
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
} }
.comfy-dialog.comfyui-dialog {
top: 0;
}
.comfy-dialog.comfy-modal { .comfy-dialog.comfy-modal {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
border-color: var(--bg-color); border-color: var(--bg-color);