forked from MapComplete/MapComplete
Small layout tweaks
This commit is contained in:
parent
58d6903ec5
commit
17c0d19b7c
5 changed files with 34 additions and 14 deletions
7
Utils.ts
7
Utils.ts
|
|
@ -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)+"...";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue