Skip to content

Commit 5583cea

Browse files
committed
QA feedback
1 parent 5fab7dc commit 5583cea

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

static/css/v3/posts-list.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@
180180
height: 32px;
181181
width: 32px;
182182
}
183+
184+
.post-content__user_card_column .user-card {
185+
max-width: 100%;
186+
}
183187
}
184188

185189

templates/v3/includes/_post_list_card.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "v3/includes/_card_group.html" %}
2-
{% load wagtailimages_tags %}
2+
{% load wagtailimages_tags news_tags text_helpers %}
33
{% comment %}
44
Post Card — extends _card_group.html to render post items for the posts_list page
55

@@ -25,8 +25,8 @@
2525
<div class="card__column">
2626
<div class="post-card__title-block">
2727
<a href="{{ item.get_absolute_url }}" class="post-card__title">{{ item.title }}</a>
28-
{% if item.summary %}
29-
<div class="post-card__summary">{{item.summary}}</div>
28+
{% if item.visible_content %}
29+
<div class="post-card__summary">{{item.visible_content|urlize|url_target_blank:''|linebreaksbr|multi_truncate_middle:30}}</div>
3030
{% endif %}
3131
<div class="post-card__meta">
3232
<time datetime="{{ item.created_at|date:'c' }}">{{ item.created_at|date:"d/m/Y" }}</time>

0 commit comments

Comments
 (0)