Skip to content

Commit

Permalink
fix: audioCover animation and estimatedMins style (#523)
Browse files Browse the repository at this point in the history
* fix: audioCover animation and estimatedMins style

* fix: zindex in audio cover
  • Loading branch information
cloudflypeng committed Sep 20, 2024
1 parent 0dc4b86 commit 11ff31b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function AudioCover({

<div
className={cn(
"center absolute inset-0 w-full transition-all duration-200 ease-in-out group-hover:opacity-100",
"center absolute inset-0 w-full transition-all duration-200 ease-in-out group-hover:-translate-y-2 group-hover:opacity-100",
playStatus ? "opacity-100" : "opacity-0",
)}
onClick={handleClickPlay}
Expand All @@ -255,8 +255,11 @@ function AudioCover({
</div>

{!!estimatedMins && (
<div className="absolute bottom-0 w-full rounded-b-sm bg-white/50 text-center text-[13px] opacity-0 backdrop-blur duration-100 group-hover:opacity-100 dark:bg-neutral-900/70">
{formatEstimatedMins(estimatedMins)}
<div className="absolute bottom-0 w-full overflow-hidden rounded-b-sm text-center ">
<div className="absolute left-0 top-0 size-full bg-white/50 opacity-0 duration-200 group-hover:opacity-100 dark:bg-neutral-900/70" />
<div className="text-[13px] opacity-0 backdrop-blur-none duration-200 group-hover:opacity-100 group-hover:backdrop-blur-sm">
{formatEstimatedMins(estimatedMins)}
</div>
</div>
)}
</div>
Expand Down

0 comments on commit 11ff31b

Please sign in to comment.