Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
e87aa187
"benchmark/kernels/vscode:/vscode.git/clone" did not exist on "18bb216c28e6d92c95f700b6aa71dd67cab3335a"
Commit
e87aa187
authored
Apr 12, 2023
by
missionfloyd
Browse files
Add slider setting type
parent
3f52e7cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
web/scripts/ui.js
web/scripts/ui.js
+24
-0
web/style.css
web/style.css
+8
-0
No files found.
web/scripts/ui.js
View file @
e87aa187
...
@@ -270,6 +270,30 @@ class ComfySettingsDialog extends ComfyDialog {
...
@@ -270,6 +270,30 @@ class ComfySettingsDialog extends ComfyDialog {
]),
]),
]);
]);
break
;
break
;
case
"
slider
"
:
element
=
$el
(
"
div
"
,
[
$el
(
"
label
"
,
{
textContent
:
name
},
[
$el
(
"
input
"
,
{
type
:
"
range
"
,
value
,
oninput
:
(
e
)
=>
{
setter
(
e
.
target
.
value
);
e
.
target
.
nextElementSibling
.
value
=
e
.
target
.
value
;
},
...
attrs
}),
$el
(
"
input
"
,
{
type
:
"
number
"
,
value
,
oninput
:
(
e
)
=>
{
setter
(
e
.
target
.
value
);
e
.
target
.
previousElementSibling
.
value
=
e
.
target
.
value
;
},
...
attrs
}),
]),
]);
break
;
default
:
default
:
console
.
warn
(
"
Unsupported setting type, defaulting to text
"
);
console
.
warn
(
"
Unsupported setting type, defaulting to text
"
);
element
=
$el
(
"
div
"
,
[
element
=
$el
(
"
div
"
,
[
...
...
web/style.css
View file @
e87aa187
...
@@ -217,6 +217,14 @@ button.comfy-queue-btn {
...
@@ -217,6 +217,14 @@ button.comfy-queue-btn {
z-index
:
99
;
z-index
:
99
;
}
}
.comfy-modal.comfy-settings
input
[
type
=
"range"
]
{
vertical-align
:
middle
;
}
.comfy-modal.comfy-settings
input
[
type
=
"range"
]
+
input
[
type
=
"number"
]
{
width
:
3.5em
;
}
.comfy-modal
input
,
.comfy-modal
input
,
.comfy-modal
select
{
.comfy-modal
select
{
color
:
var
(
--input-text
);
color
:
var
(
--input-text
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment