mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-11 18:13:52 +02:00
Fixed the length (#4296)
This commit is contained in:
parent
16095fd2e9
commit
8927592c57
@ -62,8 +62,8 @@ const AttachmentElement = (props: Props): JSX.Element|null => {
|
||||
}
|
||||
if (fileInfo.name && !fileName) {
|
||||
const generateFileName = (fName: string) => {
|
||||
if (fName.length > 21) {
|
||||
let result = fName.slice(0, 18)
|
||||
if (fName.length > 18) {
|
||||
let result = fName.slice(0, 15)
|
||||
result += '...'
|
||||
return result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user