Add previewable art hover effect

This commit is contained in:
Kalle 2023-07-09 21:02:32 +03:00
parent 62448c83cb
commit d8bcf19dc4
2 changed files with 10 additions and 0 deletions

View File

@ -130,6 +130,7 @@ function ImagePreview({
loading="lazy"
onClick={onClick}
onLoad={() => setImageLoaded(true)}
className={enablePreview ? "art__thumbnail" : undefined}
/>
);

View File

@ -1143,6 +1143,15 @@ dialog::backdrop {
flex-direction: column;
}
.art__thumbnail {
cursor: pointer;
transition: all 0.2s ease;
}
.art__thumbnail:hover {
scale: 1.025;
}
.art__dialog__image-container:focus-visible {
outline: none;
}