From b6acc81a174091c8439869568e18cf0f409c6b07 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 27 Nov 2022 21:48:30 -0600 Subject: [PATCH] media assets: fix show page to fit videos to screen height. --- .../media_asset_component/media_asset_component.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/media_asset_component/media_asset_component.html.erb b/app/components/media_asset_component/media_asset_component.html.erb index cc2b147ce..92669b706 100644 --- a/app/components/media_asset_component/media_asset_component.html.erb +++ b/app/components/media_asset_component/media_asset_component.html.erb @@ -11,9 +11,9 @@ <% elsif is_image? %> <%= tag.img src: variant(:original).file_url, width: image_width, height: image_height, draggable: "false", class: "media-asset-image max-h-inherit max-w-full h-full w-auto select-none" -%> <% elsif is_video? %> - <%= tag.video src: variant(:original).file_url, width: image_width, height: image_height, autoplay: true, loop: true, controls: "controls" %> + <%= tag.video src: variant(:original).file_url, width: image_width, height: image_height, autoplay: true, loop: true, controls: "controls", class: "media-asset-image max-h-inherit max-w-full h-full w-auto select-none" %> <% elsif is_ugoira? %> - <%= tag.video src: variant(:sample).file_url, width: image_width, height: image_height, autoplay: true, loop: true, controls: "controls" %> + <%= tag.video src: variant(:sample).file_url, width: image_width, height: image_height, autoplay: true, loop: true, controls: "controls", class: "media-asset-image max-h-inherit max-w-full h-full w-auto select-none" %> <% elsif is_flash? %> <%= tag.div class: "ruffle-container", "data-swf": variant(:original).file_url %> <% end %>