forked from MarseyWorld/MarseyWorld
increase limit to 12 "Untitled.webp"
parent
2320211082
commit
05a52dae7f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue