Improve file size

This commit is contained in:
Pierre HUBERT 2021-03-06 19:09:54 +01:00
parent dd2c8ea707
commit 04c7d31f12
2 changed files with 2 additions and 2 deletions

View File

@ -1066,7 +1066,7 @@ const ConvChatWindow = {
appendTo: messageTargetElem,
type: "a",
href: messageFile.url,
innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " (" + messageFile.size/1024 + "MB)",
innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " ("+fileSizeToHuman(messageFile.size)+")",
})
letFileLink.target = "_blank"
}

View File

@ -343,7 +343,7 @@ const ConversationPageConvPart = {
appendTo: messageContentContainer,
type: "a",
href: messageFile.url,
innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " (" + messageFile.size/1024 + "MB)",
innerHTML: "<i class='fa fa-download'></i> "+ messageFile.name + " ("+fileSizeToHuman(messageFile.size) +")",
})
letFileLink.target = "_blank"
}