Skip to content

Commit

Permalink
fix: show controls for gif in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcklingen committed Dec 20, 2024
1 parent 4c65c13 commit b3fc8af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const Video = ({
<MediaPlayer
ref={mediaPlayerRef}
src={src}
controls={!gifStyle && panelDismissed}
controls={gifStyle || panelDismissed}
autoplay={false} // We'll handle autoplay ourselves
muted={gifStyle}
loop={gifStyle}
Expand All @@ -117,9 +117,7 @@ export const Video = ({
className
)}
>
{gifStyle ? (
<div className="absolute inset-0 z-10" />
) : !panelDismissed ? (
{!gifStyle && !panelDismissed ? (
<div
className="group cursor-pointer absolute inset-0 z-10 flex flex-col justify-center items-center bg-cover"
style={{
Expand Down

0 comments on commit b3fc8af

Please sign in to comment.