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
+7 -3
+7 -3
View File
@@ -3,11 +3,14 @@
{% assign top_comments = site.comments | where: "parent", nil | sort: "date" %}
<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 %}
<div class="border-b border-gray-200 py-4"> <!-- Added container div with border and padding -->
<p class="text-sm mb-2"> <!-- Moved "Comment on" inside -->
<span class="text-text-muted opacity-75">Comment on:</span>
<a href="#" class="text-primary font-action hover:underline">"Sample Post"</a>
<div class="border-b border-gray-200 pb-3 mb-3" id="mobile-comment-comment1">
<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>
<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>
</div>
</div>
</div> <!-- Close the container div -->
{% endfor %}
</div>
</div>