mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(mobile): incorrect asset dimensions in search (#26725)
Search results use a different provider than the main timeline, and they appear appear to have diverged a bit. This means that assets can sometimes look wrong or different in search compared to the main timeline or albums.
This commit is contained in:
@@ -70,13 +70,14 @@ extension on AssetResponseDto {
|
|||||||
_ => AssetVisibility.timeline,
|
_ => AssetVisibility.timeline,
|
||||||
},
|
},
|
||||||
durationInSeconds: duration.toDuration()?.inSeconds ?? 0,
|
durationInSeconds: duration.toDuration()?.inSeconds ?? 0,
|
||||||
height: exifInfo?.exifImageHeight?.toInt(),
|
height: height?.toInt(),
|
||||||
width: exifInfo?.exifImageWidth?.toInt(),
|
width: width?.toInt(),
|
||||||
isFavorite: isFavorite,
|
isFavorite: isFavorite,
|
||||||
livePhotoVideoId: livePhotoVideoId,
|
livePhotoVideoId: livePhotoVideoId,
|
||||||
thumbHash: thumbhash,
|
thumbHash: thumbhash,
|
||||||
localId: null,
|
localId: null,
|
||||||
type: type.toAssetType(),
|
type: type.toAssetType(),
|
||||||
|
stackId: stack?.id,
|
||||||
isEdited: isEdited,
|
isEdited: isEdited,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user