mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Fix slider value display when widget.label is present (#381)
This commit is contained in:
@@ -6240,8 +6240,7 @@ export class LGraphCanvas {
|
|||||||
ctx.textAlign = "center"
|
ctx.textAlign = "center"
|
||||||
ctx.fillStyle = text_color
|
ctx.fillStyle = text_color
|
||||||
ctx.fillText(
|
ctx.fillText(
|
||||||
w.label ||
|
(w.label || w.name) +
|
||||||
w.name +
|
|
||||||
" " +
|
" " +
|
||||||
Number(w.value).toFixed(
|
Number(w.value).toFixed(
|
||||||
w.options.precision != null ? w.options.precision : 3,
|
w.options.precision != null ? w.options.precision : 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user