mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-03 14:19:56 +00:00
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:
parent
797cb191f0
commit
bf6dc4b207
@ -218,6 +218,7 @@ input.search {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
min-width: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
.flex-col-reverse {
|
.flex-col-reverse {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
const maxLenght: number = 16
|
const maxLenght: number = 30
|
||||||
const trimFilename = (fname: string): string =>
|
const trimFilename = (fname: string): string =>
|
||||||
fname.length > maxLenght ? fname.substr(0, (maxLenght - 1) / 2) + '...' + fname.substr(-(maxLenght - 1) / 2) : fname
|
fname.length > maxLenght ? fname.substr(0, (maxLenght - 1) / 2) + '...' + fname.substr(-(maxLenght - 1) / 2) : fname
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user