Shorten notification text by capping it at 75 chars

This commit is contained in:
Michcio 2022-08-21 00:16:57 +02:00
parent 8840724a7c
commit b541ecb099
1 changed files with 5 additions and 1 deletions

View File

@ -47,5 +47,9 @@ export const getNoteSummary = (note: foundkey.entities.Note): string => {
}
}
return summary.trim();
summary = summary.trim();
if (summary.length > 75) {
summary = summary.substring(0, 70) + '…';
}
return summary;
};