Skip to content

Commit

Permalink
Hide black bands on video thumbnails (#55)
Browse files Browse the repository at this point in the history
This is in order to fix an issue present on Safari.
#20
  • Loading branch information
Oli0li authored Sep 13, 2023
1 parent d73eac2 commit 009bc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/talks/_card.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<div class="max-w-sm bg-white" id="<%= dom_id talk %>">
<%= 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),
Expand Down

0 comments on commit 009bc6a

Please sign in to comment.