We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f8b88 commit f2c1b69Copy full SHA for f2c1b69
package/src/utils/getTrimmedAttachmentTitle.ts
@@ -8,6 +8,7 @@ export const getTrimmedAttachmentTitle = (title?: string) => {
8
const lastIndexOfDot = title.lastIndexOf('.');
9
return title.length < 12 ? title : title.slice(0, 12) + '...' + title.slice(lastIndexOfDot);
10
} else {
11
- return title;
+ // shorten title
12
+ return title.length < 20 ? title : title.slice(0, 20) + '...';
13
}
14
};
0 commit comments