GalleryItem img now acts as a link to full file when clicked
This commit is contained in:
parent
d332635d6a
commit
76b50ec462
@ -38,7 +38,12 @@ body {
|
|||||||
overflow: clip;
|
overflow: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
.GalleryItem > img,
|
.GalleryItem > .ImgLink {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GalleryItem > .ImgLink > img,
|
||||||
.GalleryItem > video {
|
.GalleryItem > video {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
|
@ -116,7 +116,9 @@ function ImageItem({ thumbnail_url, url, isPlaceholder }: galleryItem) {
|
|||||||
<a href={url} target="_blank">
|
<a href={url} target="_blank">
|
||||||
{getFileName(url)}
|
{getFileName(url)}
|
||||||
</a>
|
</a>
|
||||||
|
<a href={url} target="_blank" className="ImgLink">
|
||||||
<img src={thumbnail_url} loading="lazy" />
|
<img src={thumbnail_url} loading="lazy" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user