fix: use preview size for grid thumbnails to avoid blur on portrait images

This commit is contained in:
ralksta
2026-05-30 15:21:28 +02:00
parent 6f4cb467fd
commit af5da8f316

View File

@@ -98,7 +98,7 @@ function toPhotoItems(assets: ImmichAsset[], showExif: boolean): PhotoItem[] {
return { return {
id: a.id, id: a.id,
type: isVideo ? 'video' : 'image', type: isVideo ? 'video' : 'image',
thumbUrl: imageUrl(a.id, 'thumbnail'), thumbUrl: imageUrl(a.id, 'preview'),
previewUrl: imageUrl(a.id, 'preview'), previewUrl: imageUrl(a.id, 'preview'),
originalUrl: imageUrl(a.id, 'original'), originalUrl: imageUrl(a.id, 'original'),
...(isVideo ? { videoUrl: videoUrl(a.id) } : {}), ...(isVideo ? { videoUrl: videoUrl(a.id) } : {}),