fix: keep video downloads visible while playing
This commit is contained in:
@@ -77,15 +77,23 @@ function VideoAttachmentCard({
|
||||
}}
|
||||
>
|
||||
{playing && !compact ? (
|
||||
<video
|
||||
ref={videoRef}
|
||||
src={attachment.url}
|
||||
poster={attachment.posterUrl}
|
||||
controls
|
||||
playsInline
|
||||
autoPlay
|
||||
className="absolute inset-0 h-full w-full"
|
||||
/>
|
||||
<>
|
||||
<video
|
||||
ref={videoRef}
|
||||
src={attachment.url}
|
||||
poster={attachment.posterUrl}
|
||||
controls
|
||||
playsInline
|
||||
autoPlay
|
||||
className="absolute inset-0 h-full w-full"
|
||||
/>
|
||||
<AttachmentDownloadPill
|
||||
postId={postId}
|
||||
attachment={attachment}
|
||||
leadingLabel={duration}
|
||||
className="absolute left-2 top-2 z-20"
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
{posterUrl ? (
|
||||
|
||||
Reference in New Issue
Block a user