Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix render overlow

ashilkn51ef7c60fa50
diff --git a/mobile/lib/ui/viewer/file/zoomable_image.dart b/mobile/lib/ui/viewer/file/zoomable_image.dart
index 109079a2df..6b71809f85 100644
--- a/mobile/lib/ui/viewer/file/zoomable_image.dart
+++ b/mobile/lib/ui/viewer/file/zoomable_image.dart
@@ -216,15 +216,21 @@ class _ZoomableImageState extends State<ZoomableImage> {
vertical: 4.0,
horizontal: 8.0,
),
- child: Text(
- widget.photo.caption!,
- maxLines: 3,
- overflow: TextOverflow.ellipsis,
- style: getEnteTextTheme(context)
- .mini
- .copyWith(
- color: textBaseDark,
- ),
+ child: SizedBox(
+ width:
+ MediaQuery.sizeOf(context).width - 16,
+ child: Center(
+ child: Text(
+ widget.photo.caption!,
+ maxLines: 3,
+ overflow: TextOverflow.ellipsis,
+ style: getEnteTextTheme(context)
+ .mini
+ .copyWith(
+ color: textBaseDark,
+ ),
+ ),
+ ),
),
),
],