diff --git a/catalog/templates/_item_user_pieces.html b/catalog/templates/_item_user_pieces.html index ab44fd36..fde0f31e 100644 --- a/catalog/templates/_item_user_pieces.html +++ b/catalog/templates/_item_user_pieces.html @@ -2,20 +2,26 @@
我的标签 - + {% if not mark.tags %} + + + + + + {% endif %} +
+ + - {% if mark.tags %} - - {% else %} - - {% endif %} - - - + hx-swap="beforeend"> + +
{% for tag in mark.tags %} @@ -27,22 +33,26 @@
我的短评 - - - {% if mark.comment_text %} - - {% else %} + {% if not mark.comment %} + + - {% endif %} - - + + + {% endif %}
{% if mark.comment %} + + + {% liked_piece mark.comment as liked %} {% include 'like_stats.html' with liked=liked piece=mark.comment %} @@ -55,8 +65,6 @@ {% comment %} {{ mark.comment.created_time|date }} {% endcomment %}

{{ mark.comment.html|safe }}

- {% else %} - {% endif %} {% for comment in child_item_comments %} @@ -87,22 +95,23 @@
我的评论 - - {% if review %} - - - - {% else %} + {% if not review %} + - {% endif %} - + + {% endif %}
{% if review %} + + + + + {% liked_piece mark.review as liked %} {% include 'like_stats.html' with liked=liked piece=mark.review %} diff --git a/common/static/scss/_item.scss b/common/static/scss/_item.scss index d4310466..88b9562f 100644 --- a/common/static/scss/_item.scss +++ b/common/static/scss/_item.scss @@ -13,7 +13,7 @@ display: grid; grid-auto-flow: column; padding: 0.5em 0; - margin-bottom: 0.5em; + margin-bottom: 1em; &::-webkit-scrollbar { height: 0.25em;