Fix issue that thumbnails were not used
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m2s Details

This commit is contained in:
Stefan Forstenlechner 2024-08-20 23:20:11 +02:00
parent 77363a5371
commit 4794f4e62b
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ export interface PhotoWithFolder extends ImageWithThumbnail {
const PreviewFolder = ({ folder }: { folder: FolderPreview }) => {
return (
<img
src={folder.imagePreview.src}
src={folder.imagePreview.thumbnail}
alt={folder.name}
loading="lazy"
style={{

View File

@ -20,10 +20,10 @@ export const ImageGallery = ({ images }: { images: ImageWithThumbnail[] }) => {
<>
<MasonryPhotoAlbum
photos={images}
componentsProps={{
image: {
loading: "lazy",
},
render={{
image: (props, context) => (
<img {...props} src={context.photo.thumbnail} loading={"lazy"} />
),
}}
onClick={({ index }) => setIndex(index)}
/>