Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] changes: adjust thumbnail size and gap for 3x3 layout

Aman Raj Singh Mouryaf3a88dc3faef
diff --git a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart
index d42bad8dd5..0e5a19edf6 100644
--- a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart
+++ b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart
@@ -66,8 +66,8 @@ class _DeviceFolderVerticalGridViewBodyState
Width changes dynamically with screen width such that we can fit 2 in one row.
Keep the width integral (center the albums to distribute excess pixels)
*/
- static const maxThumbnailWidth = 224.0;
- static const fixedGapBetweenAlbum = 8.0;
+ static const maxThumbnailWidth = 170.0;
+ static const fixedGapBetweenAlbum = 2.0;
static const minGapForHorizontalPadding = 8.0;
@override
@@ -103,7 +103,7 @@ class _DeviceFolderVerticalGridViewBodyState
if (snapshot.hasData) {
final double screenWidth = MediaQuery.of(context).size.width;
final int albumsCountInOneRow =
- max(screenWidth ~/ maxThumbnailWidth, 2);
+ max(screenWidth ~/ maxThumbnailWidth, 3);
final double gapBetweenAlbums =
(albumsCountInOneRow - 1) * fixedGapBetweenAlbum;
final double gapOnSizeOfAlbums = minGapForHorizontalPadding +