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
54251ad8
Unverified
Commit
54251ad8
authored
Apr 26, 2023
by
Jake D
Committed by
GitHub
Apr 26, 2023
Browse files
Colored MultilineWidget (#524)
* fixes colors and z-index * light mode fix * Update widgets.js
parent
ee3a12d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
web/scripts/widgets.js
web/scripts/widgets.js
+3
-1
No files found.
web/scripts/widgets.js
View file @
54251ad8
...
...
@@ -136,9 +136,11 @@ function addMultilineWidget(node, name, opts, app) {
left
:
`
${
t
.
a
*
margin
+
t
.
e
}
px`
,
top
:
`
${
t
.
d
*
(
y
+
widgetHeight
-
margin
-
3
)
+
t
.
f
}
px`
,
width
:
`
${(
widgetWidth
-
margin
*
2
-
3
)
*
t
.
a
}
px`
,
background
:
(
!
node
.
color
)?
''
:
node
.
color
,
height
:
`
${(
this
.
parent
.
inputHeight
-
margin
*
2
-
4
)
*
t
.
d
}
px`
,
position
:
"
absolute
"
,
zIndex
:
1
,
color
:
(
!
node
.
color
)?
''
:
'
white
'
,
zIndex
:
app
.
graph
.
_nodes
.
indexOf
(
node
),
fontSize
:
`
${
t
.
d
*
10.0
}
px`
,
});
this
.
inputEl
.
hidden
=
!
visible
;
...
...
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