From 3c5a88613dcc5133c2b46a9b0f40b07f8416db43 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Nov 2024 17:31:49 +0200 Subject: [PATCH] consistency --- files/assets/js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 313423308..9a21b61fb 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -630,7 +630,7 @@ if (file_upload) { { const file = file_upload.files[0] if (check_file_size(file_upload, file)) { - const char_limit = innerWidth >= 768 ? 50 : 10; + const char_limit = innerWidth >= 768 ? 50 : 13; file_upload.previousElementSibling.textContent = file.name.substr(0, char_limit); if (file.type.startsWith('image/')) { const fileReader = new FileReader();