mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01: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:
parent
8b5b6d0821
commit
a42c95a781
1 changed files with 6 additions and 6 deletions
|
@ -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(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue