TSK-1319. Increased the length of the file name before cropping (#3060)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2023-04-24 18:57:11 +03:00 committed by GitHub
parent 797cb191f0
commit bf6dc4b207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -218,6 +218,7 @@ input.search {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
min-width: 0;
min-height: 0;
}
.flex-col-reverse {

View File

@ -25,7 +25,7 @@
const dispatch = createEventDispatcher()
const maxLenght: number = 16
const maxLenght: number = 30
const trimFilename = (fname: string): string =>
fname.length > maxLenght ? fname.substr(0, (maxLenght - 1) / 2) + '...' + fname.substr(-(maxLenght - 1) / 2) : fname