keep gradients when still image is showing

This commit is contained in:
Josh Hawkins 2024-06-10 17:50:16 -05:00
parent 168786ae7d
commit aea5ff2986

View File

@ -196,7 +196,7 @@ export default function LivePlayer({
)}
onClick={onClick}
>
{liveReady && (
{((showStillWithoutActivity && !liveReady) || liveReady) && (
<>
<div className="pointer-events-none absolute inset-x-0 top-0 z-10 h-[30%] w-full rounded-lg bg-gradient-to-b from-black/20 to-transparent md:rounded-2xl"></div>
<div className="pointer-events-none absolute inset-x-0 bottom-0 z-10 h-[10%] w-full rounded-lg bg-gradient-to-t from-black/20 to-transparent md:rounded-2xl"></div>