Skip to content

Commit

Permalink
fixed youtube video overflow on mobile
Browse files Browse the repository at this point in the history
We put a set size on desktop but we'll have it compress on mobile
  • Loading branch information
Bullrich committed May 16, 2024
1 parent 1695578 commit ede8b2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/_includes/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>

<div class="blog-content">
{% if video %}
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ video }}" title="YouTube video player"
frameborder="0" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture"
<iframe class="lg:h-[315px] lg:w-[560px]" src="https://www.youtube.com/embed/{{ video }}"
title="YouTube video player" frameborder="0"
allow="autoplay; clipboard-write; encrypted-media; picture-in-picture"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
{% endif %}

Expand Down

0 comments on commit ede8b2a

Please sign in to comment.