mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
mobile: show stack indicator for videos (#4671)
Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -70,7 +70,7 @@ class ThumbnailImage extends StatelessWidget {
|
|||||||
final durationString = asset.duration.toString();
|
final durationString = asset.duration.toString();
|
||||||
return Positioned(
|
return Positioned(
|
||||||
top: 5,
|
top: 5,
|
||||||
right: 5,
|
right: 8,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
@@ -100,8 +100,8 @@ class ThumbnailImage extends StatelessWidget {
|
|||||||
|
|
||||||
Widget buildStackIcon() {
|
Widget buildStackIcon() {
|
||||||
return Positioned(
|
return Positioned(
|
||||||
top: 5,
|
top: !asset.isImage ? 28 : 5,
|
||||||
right: 5,
|
right: 8,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
if (asset.stackChildrenCount > 1)
|
if (asset.stackChildrenCount > 1)
|
||||||
@@ -214,7 +214,7 @@ class ThumbnailImage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
if (showStorageIndicator)
|
if (showStorageIndicator)
|
||||||
Positioned(
|
Positioned(
|
||||||
right: 10,
|
right: 8,
|
||||||
bottom: 5,
|
bottom: 5,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
storageIcon(asset),
|
storageIcon(asset),
|
||||||
@@ -224,7 +224,7 @@ class ThumbnailImage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
if (asset.isFavorite)
|
if (asset.isFavorite)
|
||||||
const Positioned(
|
const Positioned(
|
||||||
left: 10,
|
left: 8,
|
||||||
bottom: 5,
|
bottom: 5,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.favorite,
|
Icons.favorite,
|
||||||
@@ -233,7 +233,7 @@ class ThumbnailImage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!asset.isImage) buildVideoIcon(),
|
if (!asset.isImage) buildVideoIcon(),
|
||||||
if (asset.isImage && asset.stackChildrenCount > 0) buildStackIcon(),
|
if (asset.stackChildrenCount > 0) buildStackIcon(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user