فهرست منبع

HUE-2471 [beeswax] Fix display ellipsis on fields longer than 20 characters

Removed ellipsis on shorter fields
Enrico Berti 11 سال پیش
والد
کامیت
1b68f38
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      apps/beeswax/src/beeswax/templates/execute.mako

+ 3 - 2
apps/beeswax/src/beeswax/templates/execute.mako

@@ -997,13 +997,14 @@ var truncateOutput = function (obj) {
     name = obj.name || '',
     type = obj.type || '',
     output = name.length + type.length,
+    suffix = '',
     trim;
-
   if (output > chars) {
     trim = Math.abs((output + 4) - chars); // 4 accounts for ellipsis, spaces, parenthesis
     type = type.slice(0, Math.abs(type.length - trim));
+    suffix = '…';
   }
-  return escapeOutput(type) + '…';
+  return escapeOutput(type) + suffix;
 };
 
 function placeResizePanelHandle() {