Skip to content

Commit 3b4ae3e

Browse files
committed
fix landing page wrapping on small screens
1 parent 2c712d8 commit 3b4ae3e

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

_includes/video-list-columns.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
1-
<div style="display: flex; gap: 20px; align-items: center;">
2-
<div style="flex: 1;">
1+
<div class="video-list-container">
2+
<div class="video-column">
33
<iframe style="width: 100%; aspect-ratio: 560 / 315;" src="https://www.youtube.com/embed/{{ include.video_id }}"
44
frameborder="0" allowfullscreen></iframe>
55
</div>
6-
<div style="flex: 1;">
6+
<div class="list-column">
77
<ul>
88
{% assign items = include.list | split: "|" %}
99
{% for item in items %}
1010
<li>{{ item }}</li>
1111
{% endfor %}
1212
</ul>
1313
</div>
14-
</div>
15-
14+
</div>
15+
16+
<style>
17+
.video-list-container {
18+
display: flex;
19+
gap: 20px;
20+
align-items: center;
21+
}
22+
23+
.video-column,
24+
.list-column {
25+
flex: 1;
26+
}
27+
28+
/* On small screens, stack columns vertically */
29+
@media (max-width: 800px) {
30+
.video-list-container {
31+
flex-direction: column;
32+
align-items: stretch; /* so columns fill width */
33+
}
34+
}
35+
</style>

0 commit comments

Comments
 (0)