From 6794ee2b3e1ebc9069971a0de4425417d578bd01 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 22 Jun 2024 12:17:25 -0400 Subject: [PATCH] add back item card to feed --- common/static/scss/_feed.scss | 6 ++++++ common/static/scss/_post.scss | 2 +- social/templates/feed_events.html | 8 +++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/common/static/scss/_feed.scss b/common/static/scss/_feed.scss index 6effb372..221fa34b 100644 --- a/common/static/scss/_feed.scss +++ b/common/static/scss/_feed.scss @@ -1,4 +1,10 @@ .feed-page { + .feed { + article { + margin-bottom: 0.5em; + margin-top: 0.5em; + } + } .notifications { word-break: break-word; diff --git a/common/static/scss/_post.scss b/common/static/scss/_post.scss index b39115f3..ab667eb3 100644 --- a/common/static/scss/_post.scss +++ b/common/static/scss/_post.scss @@ -3,7 +3,7 @@ word-break: break-word; margin-bottom: 0.5em; } - .cover { + .embed-cover { img { max-width:6em; max-height:12em; diff --git a/social/templates/feed_events.html b/social/templates/feed_events.html index 8ad7e192..10954854 100644 --- a/social/templates/feed_events.html +++ b/social/templates/feed_events.html @@ -70,6 +70,9 @@ {% trans "wrote a note" %} {% endif %} + {% if piece and piece.classname != 'note' %} +
{% include "_item_card.html" with item=item allow_embed=1 %}
+ {% endif %}
{{ post.summary|default:'' }}
-
- {% if post.piece %} +
+ {% if piece and piece.classname == 'note' %} {% if item %} - {#
{% include "_item_card.html" with item=item allow_embed=1 %}
#} cover