Skip to content

Commit ede8b2a

Browse files
committed
fixed youtube video overflow on mobile
We put a set size on desktop but we'll have it compress on mobile
1 parent 1695578 commit ede8b2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/_includes/blog.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>
1919

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

0 commit comments

Comments
 (0)