From 5a852dc4431d4a1228c3fc0433963923a01a0580 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 3 Sep 2023 15:20:24 +0200 Subject: [PATCH] Add more file sizes for groupping #706 --- src/frontend/app/ui/gallery/navigator/sorting.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/ui/gallery/navigator/sorting.service.ts b/src/frontend/app/ui/gallery/navigator/sorting.service.ts index d72f994e..e89182bb 100644 --- a/src/frontend/app/ui/gallery/navigator/sorting.service.ts +++ b/src/frontend/app/ui/gallery/navigator/sorting.service.ts @@ -255,7 +255,7 @@ export class GallerySortingService { groupFN = (m: MediaDTO) => ((m as PhotoDTO).metadata.rating || 0).toString(); break; case SortByTypes.FileSize: { - const groups = [0.5, 1, 2, 5, 10, 15, 20, 30, 50]; // MBs + const groups = [0.5, 1, 2, 5, 10, 15, 20, 30, 50, 100, 200, 500, 1000]; // MBs groupFN = (m: MediaDTO) => { const mbites = ((m as PhotoDTO).metadata.fileSize || 0) / 1024 / 1024; const i = groups.findIndex((s) => s > mbites);