forked from FoundKeyGang/FoundKey
Shorten notification text by capping it at 75 chars
This commit is contained in:
parent
8840724a7c
commit
b541ecb099
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue