From a5572a47f9811468c9f0ec63ccd983ce3a21e66c Mon Sep 17 00:00:00 2001 From: Olivia Bonnal <99920845+Oli0li@users.noreply.github.com> Date: Wed, 13 Sep 2023 18:12:44 +0100 Subject: [PATCH] Hide black bands on video thumbnails This is in order to fix an issue present on Safari. https://github.com/adrienpoly/rubyvideo/issues/20 --- app/views/talks/_card.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/talks/_card.html.erb b/app/views/talks/_card.html.erb index 53681d69..f11f13e0 100644 --- a/app/views/talks/_card.html.erb +++ b/app/views/talks/_card.html.erb @@ -1,6 +1,6 @@
- <%= link_to talk_path(talk, speaker_slug: local_assigns.fetch(:speaker_slug, nil)), class: "flex aspect-video" do %> + <%= link_to talk_path(talk, speaker_slug: local_assigns.fetch(:speaker_slug, nil)), class: "flex aspect-video overflow-hidden" do %> <%= image_tag talk.thumbnail_sm, srcset: ["#{talk.thumbnail_lg} 2x"], id: dom_id(talk),