fix: keep video downloads visible while playing

This commit is contained in:
TerryM
2026-05-28 16:37:00 +08:00
parent ca6dfe0fe1
commit 4c15e01460
6 changed files with 48 additions and 24 deletions

View File

@@ -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 ? (