Make toolbar and main menu collapsible
This commit is contained in:
@@ -86,6 +86,9 @@ export const upload_file = async (file: File) => {
|
||||
}
|
||||
}
|
||||
|
||||
const min_uploads = 2
|
||||
const max_uploads = 20
|
||||
|
||||
let active_uploads = 0
|
||||
let status = $state("idle")
|
||||
|
||||
@@ -109,7 +112,10 @@ const start_upload = async () => {
|
||||
// If the size threshold or the concurrent upload limit is reached
|
||||
// we break the loop. The system tries to keep an upload queue of
|
||||
// 100 MB and a minimum of two concurrent uploads.
|
||||
if ((uploading_size >= 100e6 && active_uploads >= 2) || active_uploads >= 10) {
|
||||
if (
|
||||
(uploading_size >= 100e6 && active_uploads >= min_uploads) ||
|
||||
active_uploads >= max_uploads
|
||||
) {
|
||||
console.debug("Current uploads", active_uploads, "uploads size", uploading_size)
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user