]> Untitled Git - lemmy-ui.git/commit
wrap video embeds in the ratio container
authorDavid Palmer <david.palmer@adscale.co.nz>
Wed, 21 Jun 2023 04:15:02 +0000 (16:15 +1200)
committerDavid Palmer <david.palmer@adscale.co.nz>
Wed, 21 Jun 2023 04:15:02 +0000 (16:15 +1200)
commit9858514bb4605070096637e87a8109bceb0d6d85
treeb2677a714e5fe4b423d7944cbcaddd1b52c8b8e1
parentbc658a80a442eb723cd44e425d61236f789bf4e4
wrap video embeds in the ratio container

This should correctly size the embedded video iframe to the full
available width, which looks better and is compatible with mobile
devices.

Also add the "allowfullscreen" modifier to the iframe so that the video
can be expanded to the browser's fullscreen mode.

Also add the post.embed_title as the iframe "title" attribute.
src/shared/components/post/metadata-card.tsx