Skip to content
8 changes: 4 additions & 4 deletions docs/ssvc-explorer/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ const graphModule = (function() {
}
function truncateEllipsis(d) {
let dstr = d.name.split(":")[0];
if (dstr.length > 25) {
let truncated = dstr.substring(0, 22);
if(/\s+$/.test(truncated) || /^\s/.test(dstr[22]) ) {
if (dstr.length > 20) {
let truncated = dstr.substring(0, 18);
if(/\s+$/.test(truncated)) {
/* If it ends with spaces remove all spaces and the last
non-space character to show the word has been truncated */
truncated = truncated.replace(/\s+$/, "");
truncated = truncated.slice(0, -1);
//truncated = truncated.slice(0, -1);
}
dstr = truncated + "...";
}
Expand Down
Loading