1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

(Enabled on hover) Added new css class

This commit is contained in:
Ivan Evans 2024-08-06 11:26:29 -06:00
parent 44dddead7c
commit 4e52bf65b3
2 changed files with 13 additions and 1 deletions

View file

@ -142,7 +142,10 @@ function MediaCardContent({
</>
) : null}
<div className="absolute" onClick={(e) => e.preventDefault()}>
<div
className="absolute bookmark-button"
onClick={(e) => e.preventDefault()}
>
<MediaBookmarkButton media={media} />
</div>

View file

@ -5,3 +5,12 @@
.hover\:flare-enabled:hover .flare-light {
opacity: 1 !important;
}
.bookmark-button {
opacity: 0;
transition: opacity 0.3s;
}
.group:hover .bookmark-button {
opacity: 1;
}