(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} ) : null}
<div className="absolute" onClick={(e) => e.preventDefault()}> <div
className="absolute bookmark-button"
onClick={(e) => e.preventDefault()}
>
<MediaBookmarkButton media={media} /> <MediaBookmarkButton media={media} />
</div> </div>

View File

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