Skip to content

armgit / ente

Public Imported from GitHub
0

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

Reduce shared photos grid gap from 4px to 2px

ashilkn9535cd6efeae
diff --git a/mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart b/mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart
index 6ef808f7ea..1af05c915d 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart
@@ -152,7 +152,7 @@ class _SharedPhotosGridState extends State<SharedPhotosGrid> {
}
Widget _buildTwoPhotos(List<EnteFile> files) {
- const gap = 4.0;
+ const gap = 2.0;
final itemHeight = (widget.gridSize - gap) / 2;
return Column(
@@ -173,7 +173,7 @@ class _SharedPhotosGridState extends State<SharedPhotosGrid> {
}
Widget _buildThreePhotos(List<EnteFile> files) {
- const gap = 4.0;
+ const gap = 2.0;
final itemWidth = (widget.gridSize - gap) / 2;
final itemHeight = (widget.gridSize - gap) / 2;
@@ -207,7 +207,7 @@ class _SharedPhotosGridState extends State<SharedPhotosGrid> {
}
Widget _buildFourPlusPhotos(List<EnteFile> files, int extraCount) {
- const gap = 4.0;
+ const gap = 2.0;
final itemWidth = (widget.gridSize - gap) / 2;
final itemHeight = (widget.gridSize - gap) / 2;