From 05a52dae7f358e168af01c56591f981b5bdad9ee Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Nov 2024 03:13:00 +0200 Subject: [PATCH] increase limit to 12 "Untitled.webp" --- files/assets/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 991e5d96a..ac614eba4 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -392,7 +392,7 @@ const input = document.getElementById('file') function handle_files() { if (!input.files.length) return if (check_file_size(input, input.files[0])) { - const char_limit = innerWidth >= 768 ? 50 : 10; + const char_limit = innerWidth >= 768 ? 50 : 13; input.previousElementSibling.className = ""; input.previousElementSibling.textContent = input.files[0].name.substr(0, char_limit);