mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-12 08:30:08 +00:00
[i18n] Add INodeSlot.localized_name field (#376)
* [i18n] Add INodeSlot.localized_name field * nit
This commit is contained in:
@@ -3348,7 +3348,7 @@ export class LGraphCanvas {
|
||||
// TODO: Find a cheap way to measure text, and do it on node label change instead of here
|
||||
// Input icon width + text approximation
|
||||
const width =
|
||||
20 + ((input.label?.length ?? input.name?.length) || 3) * 7
|
||||
20 + ((input.label?.length ?? input.localized_name?.length ?? input.name?.length) || 3) * 7
|
||||
is_inside = isInRectangle(
|
||||
canvasx,
|
||||
canvasy,
|
||||
|
||||
Reference in New Issue
Block a user