From a42c95a781ce4191b2ffb5b79ad222ed60c4e61f Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Sat, 28 Oct 2023 01:09:17 +0000 Subject: [PATCH] mobile: show stack indicator for videos (#4671) Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- .../modules/home/ui/asset_grid/thumbnail_image.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart b/mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart index 2dc558a127..7d01aea9ca 100644 --- a/mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart +++ b/mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart @@ -70,7 +70,7 @@ class ThumbnailImage extends StatelessWidget { final durationString = asset.duration.toString(); return Positioned( top: 5, - right: 5, + right: 8, child: Row( children: [ Text( @@ -100,8 +100,8 @@ class ThumbnailImage extends StatelessWidget { Widget buildStackIcon() { return Positioned( - top: 5, - right: 5, + top: !asset.isImage ? 28 : 5, + right: 8, child: Row( children: [ if (asset.stackChildrenCount > 1) @@ -214,7 +214,7 @@ class ThumbnailImage extends StatelessWidget { ), if (showStorageIndicator) Positioned( - right: 10, + right: 8, bottom: 5, child: Icon( storageIcon(asset), @@ -224,7 +224,7 @@ class ThumbnailImage extends StatelessWidget { ), if (asset.isFavorite) const Positioned( - left: 10, + left: 8, bottom: 5, child: Icon( Icons.favorite, @@ -233,7 +233,7 @@ class ThumbnailImage extends StatelessWidget { ), ), if (!asset.isImage) buildVideoIcon(), - if (asset.isImage && asset.stackChildrenCount > 0) buildStackIcon(), + if (asset.stackChildrenCount > 0) buildStackIcon(), ], ), );