mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-24 02:06:59 +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) {
|
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 };
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user