1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 18:32:34 +01:00

fix incorrect video size

This commit is contained in:
Puyodead1 2023-09-02 22:56:23 -04:00
parent 39b00299aa
commit 1fb1392d58
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -47,7 +47,7 @@ export default function MessageAttachment({ attachment, contextMenuItems, maxWid
/* TODO: poster thumbnail */
}
a = (
<video controls preload="metadata" width={400}>
<video playsInline controls preload="metadata" height={400}>
{/* TODO: the server doesn't return height and width yet for videos */}
<source src={url} type={attachment.content_type} />
</video>