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 f3ce24c commit f1c40afCopy full SHA for f1c40af
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