Skip to content

Commit

Permalink
Add closeRow to videos
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Oct 5, 2024
1 parent 7fa88e5 commit 2c7b012
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -588,12 +588,15 @@ export const AttachmentView = (props: AttachmentViewProps) => {

if (props.attachment.mime.startsWith("video/")) {
return (
<video
src={`${uploads}/attachments/${props.attachment.id}/${props.attachment.filename}`}
className="max-h-40"
controls
title={props.attachment.filename}
/>
<div className="flex flex-col items-center">
{closeRow}
<video
src={`${uploads}/attachments/${props.attachment.id}/${props.attachment.filename}`}
className="max-h-40"
controls
title={props.attachment.filename}
/>
</div>
);
}

Expand Down

0 comments on commit 2c7b012

Please sign in to comment.