mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-21 08:17:03 +08:00
Increase delay when typing, remove margin on Safari, fix dialog location
This commit is contained in:
parent
35ff8d4877
commit
5df9838aa7
@ -6,7 +6,7 @@ export class ComfyAsyncDialog extends ComfyDialog {
|
||||
|
||||
constructor(actions) {
|
||||
super(
|
||||
"dialog.comfy-dialog",
|
||||
"dialog.comfy-dialog.comfyui-dialog",
|
||||
actions?.map((opt) => {
|
||||
if (typeof opt === "string") {
|
||||
opt = { text: opt };
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
border-radius: 4px;
|
||||
padding: 4px 8px;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.comfyui-button:disabled {
|
||||
|
||||
@ -474,7 +474,7 @@ export class ComfyWorkflowsContent {
|
||||
oninput: (e) => {
|
||||
this.filterText = e.target["value"]?.trim();
|
||||
clearTimeout(typingTimeout);
|
||||
typingTimeout = setTimeout(() => this.filterTree(), 100);
|
||||
typingTimeout = setTimeout(() => this.filterTree(), 250);
|
||||
},
|
||||
}),
|
||||
]),
|
||||
|
||||
@ -403,6 +403,10 @@ dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.comfy-dialog.comfyui-dialog {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.comfy-dialog.comfy-modal {
|
||||
font-family: Arial, sans-serif;
|
||||
border-color: var(--bg-color);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user