mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-14 09:01:29 +03:00
Adjusted thresholds for consolidating download action buttons
This commit is contained in:
@@ -39,6 +39,7 @@ export class DownloadsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
actionsFlex = 2;
|
||||
minimizeButtons = false;
|
||||
displayedColumnsBig: string[] = ['timestamp_start', 'title', 'sub_name', 'percent_complete', 'actions'];
|
||||
displayedColumnsSmall: string[] = ['title', 'percent_complete', 'actions'];
|
||||
displayedColumns: string[] = this.displayedColumnsBig;
|
||||
@@ -328,6 +329,9 @@ export class DownloadsComponent implements OnInit, OnDestroy {
|
||||
else this.displayedColumns = this.displayedColumnsBig;
|
||||
|
||||
this.actionsFlex = this.uids || this.innerWidth < 800 ? 1 : 2;
|
||||
|
||||
if (this.innerWidth < 800 && !this.uids || this.innerWidth < 1100 && this.uids) this.minimizeButtons = true;
|
||||
else this.minimizeButtons = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user