1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2026-05-16 09:21:12 +02:00

Fixing uploading box in empty folder #1118

This commit is contained in:
Patrik J. Braun
2026-01-23 15:32:53 +01:00
parent 93d406f357
commit abcbe61372
2 changed files with 13 additions and 2 deletions
@@ -1,3 +1,10 @@
app-frame {
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
}
.container-fluid {
width: 100%;
padding: 0;
@@ -29,6 +36,10 @@ app-gallery-map {
right: 4px
}
.app-gallery-body{
flex-grow: 1;
}
.directories {
margin-right: 2px;
@@ -158,10 +158,10 @@ export class UploaderService {
if (timeDiff >= 1 && this.activeUploads > 0) {
const speed = (currentProgressSum - this.lastProgressSum) / timeDiff; // % per second
if (speed > 30 && this.MAX_CONCURRENT_UPLOADS < this.MAX_ALLOWED_CONCURRENT_UPLOADS) {
if (speed > 20 && this.MAX_CONCURRENT_UPLOADS < this.MAX_ALLOWED_CONCURRENT_UPLOADS) {
this.MAX_CONCURRENT_UPLOADS++;
this.processQueue();
} else if (speed < 30 && this.MAX_CONCURRENT_UPLOADS > this.DEFAULT_MAX_CONCURRENT_UPLOADS) {
} else if (speed < 20 && this.MAX_CONCURRENT_UPLOADS > this.DEFAULT_MAX_CONCURRENT_UPLOADS) {
this.MAX_CONCURRENT_UPLOADS--;
}