mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Fix truncating non-strings (#74)
This commit is contained in:
@@ -9937,6 +9937,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
if (availableWidth <= ellipsisWidth) {
|
||||
v = "\u2024"; // One dot leader
|
||||
} else {
|
||||
v = `${v}`
|
||||
const overflowWidth = (textWidth + ellipsisWidth) - availableWidth;
|
||||
// Only first 3 characters need to be measured precisely
|
||||
if ( overflowWidth + charWidthAvg * 3 > availableWidth) {
|
||||
|
||||
Reference in New Issue
Block a user