Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Tighten gallery filmstrip spacing

ashil-pilotdc362e2c3f67
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_viewer_filmstrip.dart b/mobile/apps/photos/lib/ui/viewer/file/file_viewer_filmstrip.dart
index 4a4cd80f6f..bb8f4317e6 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_viewer_filmstrip.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_viewer_filmstrip.dart
@@ -17,7 +17,7 @@ const kFileViewerFilmstripGap = 6.0;
const kFileViewerFilmstripAdditionalBottomInset =
kFileViewerFilmstripHeight + kFileViewerFilmstripGap + 6.0;
-const _itemExtent = 35.0;
+const _itemExtent = 33.0;
const _selectedThumbnailWidth = 34.0;
const _selectedThumbnailHeight = 43.0;
const _thumbnailWidth = 29.0;
@@ -176,7 +176,11 @@ class _FileViewerFilmstripState extends State<FileViewerFilmstrip> {
child: SizedBox(
width: _itemExtent,
height: kFileViewerFilmstripHeight,
- child: Center(
+ child: OverflowBox(
+ minWidth: 0,
+ maxWidth: _selectedThumbnailWidth,
+ minHeight: 0,
+ maxHeight: _selectedThumbnailHeight,
child: AnimatedContainer(
duration: _selectionAnimationDuration,
curve: Curves.easeOutCubic,
diff --git a/mobile/apps/photos/test/ui/viewer/file/file_viewer_filmstrip_test.dart b/mobile/apps/photos/test/ui/viewer/file/file_viewer_filmstrip_test.dart
index b7bd961e62..d64dc09553 100644
--- a/mobile/apps/photos/test/ui/viewer/file/file_viewer_filmstrip_test.dart
+++ b/mobile/apps/photos/test/ui/viewer/file/file_viewer_filmstrip_test.dart
@@ -25,7 +25,7 @@ void main() {
tester
.getCenter(find.byKey(const ValueKey("filmstrip-test-item-7")))
.dx,
- closeTo(35, 0.01),
+ closeTo(33, 0.01),
);
expect(
tester.getSize(