Skip to content

Commit 1baaae7

Browse files
committed
PR feedback: Add missing images, align tablet images top, add missing border-radius, reflow image on mobile
1 parent 81866a2 commit 1baaae7

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

static/css/v3/posts-list.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@
110110
flex: 1 0 auto;
111111
align-self: center;
112112
position: relative;
113+
border-radius: var(--border-radius-s);
114+
overflow: hidden;
115+
}
116+
117+
.post-card__thumbnail img {
118+
width: 160px;
119+
height: auto;
113120
}
114121

115122
.post-card__play-icon {
@@ -153,6 +160,30 @@
153160
.post-content__filter_column {
154161
margin-bottom: var(--space-xl);
155162
}
163+
164+
.post-card__row {
165+
flex-direction: column;
166+
}
167+
168+
.post-card__thumbnail {
169+
width: 100%;
170+
}
171+
172+
.post-card__thumbnail img {
173+
width: 100%;
174+
}
175+
176+
.post-card__play-icon {
177+
height: 32px;
178+
width: 32px;
179+
}
180+
}
181+
182+
183+
@media (max-width: 1279px) {
184+
.post-card__thumbnail {
185+
align-self: flex-start;
186+
}
156187
}
157188

158189

templates/v3/includes/_post_list_card.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@
4040
</div>
4141
{% if item.video_thumbnail %}
4242
<a class="post-card__thumbnail" href="{{ item.get_absolute_url }}">
43-
{% image item.video_thumbnail fill-180x100 %}
43+
{% image item.video_thumbnail fill-360x200 %}
4444
<div class="post-card__play-icon">
4545
{% include "includes/icon.html" with icon_name="play_button" icon_size=16 only %}
4646
</div>
4747
</a>
48+
{% elif item.image %}
49+
<a class="post-card__thumbnail" href="{{ item.get_absolute_url }}">
50+
<img src="{{item.image.url}}" />
51+
</a>
4852
{% endif %}
4953
</div>
5054
</article>

0 commit comments

Comments
 (0)