style: Fix comment border placement in user_comments.liquid

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 16:59:16 +08:00
1 parent 5f5fc52add
commit 307a696ff7
1 file changed
+8 -4
+8 -4
View File
@@ -3,11 +3,14 @@
{% assign top_comments = site.comments | where: "parent", nil | sort: "date" %} {% assign top_comments = site.comments | where: "parent", nil | sort: "date" %}
<div class="mt-4"> <div class="mt-4">
<div id="mobile-comments-list" class="space-y-4"> <div id="mobile-comments-list" class="space-y-0"> <!-- Removed space-y-4 -->
{% for comment in top_comments %} {% for comment in top_comments %}
<span class="text-text-muted opacity-75">Comment on:</span> <div class="border-b border-gray-200 py-4"> <!-- Added container div with border and padding -->
<a href="#" class="text-primary font-action hover:underline">"Sample Post"</a> <p class="text-sm mb-2"> <!-- Moved "Comment on" inside -->
<div class="border-b border-gray-200 pb-3 mb-3" id="mobile-comment-comment1"> <span class="text-text-muted opacity-75">Comment on:</span>
<a href="#" class="text-primary font-action hover:underline">"Sample Post"</a> <!-- Placeholder link -->
</p>
<div> <!-- Removed border/padding classes from this div -->
<p class="text-sm mb-2">{{ comment.content }} <p class="text-sm mb-2">{{ comment.content }}
</p> </p>
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2"> <div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2">
@@ -28,6 +31,7 @@
</small> </small>
</div> </div>
</div> </div>
</div> <!-- Close the container div -->
{% endfor %} {% endfor %}
</div> </div>
</div> </div>