Implemented lazy rendering of search results

This commit is contained in:
squidfunk
2019-12-19 14:05:00 +01:00
parent 6b1ff5ef1d
commit a18ac26f59
15 changed files with 350 additions and 59 deletions

View File

@@ -35,7 +35,7 @@
export function truncate(string: string, n: number): string {
let i = n
if (string.length > i) {
while (string[i] !== " " && --i > 0);
while (string[i] !== " " && --i > 0); // tslint:disable-line
return `${string.substring(0, i)}...`
}
return string