mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Split duration to the second
This commit is contained in:
parent
4a57a4c603
commit
ecfb9d7c16
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ class ImageGrid extends ConsumerWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
assetGroup[index].duration.toString(),
|
assetGroup[index].duration.toString().substring(0, 7),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ class ThumbnailImage extends HookWidget {
|
||||||
cacheKey: "${asset.id}-${cacheKey.value}",
|
cacheKey: "${asset.id}-${cacheKey.value}",
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 300,
|
height: 300,
|
||||||
memCacheHeight: asset.type == 'IMAGE' ? 200 : 500,
|
memCacheHeight: asset.type == 'IMAGE' ? 250 : 400,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
imageUrl: thumbnailRequestUrl,
|
imageUrl: thumbnailRequestUrl,
|
||||||
httpHeaders: {"Authorization": "Bearer ${box.get(accessTokenKey)}"},
|
httpHeaders: {"Authorization": "Bearer ${box.get(accessTokenKey)}"},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue