Small layout tweaks

This commit is contained in:
Pieter Vander Vennet 2020-08-26 00:21:34 +02:00
parent 58d6903ec5
commit 17c0d19b7c
5 changed files with 34 additions and 14 deletions

View file

@ -65,5 +65,12 @@ export class Utils {
}
), Locale.language);
}
public static EllipsesAfter(str : string, l : number = 100){
if(str.length <= l){
return str;
}
return str.substr(0, l - 3)+"...";
}
}