diff --git a/webclient/public/index.html b/webclient/public/index.html index 6cfcd30..d1827f0 100644 --- a/webclient/public/index.html +++ b/webclient/public/index.html @@ -78,21 +78,25 @@
{{ story.text | safe }}
{% elif show_comments %} {% macro render_comment(comment, level) %} -
-
-

- {% if comment.author == story.author %}[OP] {% endif %}{{ comment.author or '[Deleted]' }} | {{ comment.date | fromnow }} -

-
+
+

+ {% if comment.author == story.author %}[OP] {% endif %}{{ comment.author or '[Deleted]' }} | {{ comment.date | fromnow }} +

+
+
{{ (comment.text | safe) if comment.text else '

[Empty / deleted comment]

' }}
- {% for reply in comment.comments %} - {{ render_comment(reply, level + 1) }} - {% endfor %} -
+ {% if comment.comments %} +
+ {% for reply in comment.comments %} + {{ render_comment(reply, level + 1) }} + {% endfor %} +
+ {% endif %} + {% endmacro %} -
+
{% for comment in story.comments %}{{ render_comment(comment, 0) }}{% endfor %} -
+ {% endif %}
diff --git a/webclient/src/Style-light.css b/webclient/src/Style-light.css index 8e86cbc..78f4a3d 100644 --- a/webclient/src/Style-light.css +++ b/webclient/src/Style-light.css @@ -189,6 +189,14 @@ span.source { .comments { margin-left: -1.25rem; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +.comments dl, .comments dd { + margin: 0; + padding: 0; } .comment {