feat: Add reply form to mobile comment nested

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-04 22:16:25 +08:00
1 parent 7bdc012868
commit 0e72252d62
4 files changed
+15 -64

No files matched your search

+14
View File
@@ -51,6 +51,20 @@
<span class="text-text-muted text-sm opacity-75">{{ comment.date | date: "%d %b %Y" }}</span>
</small>
</div>
<!-- Reply Box -->
<form>
<div class="mb-4">
<div>
<textarea class="w-full text-primary text-sm px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs" id="comment-body" name="body" placeholder="Enter your comment" required></textarea>
</div>
<p class="mt-1 text-xs text-text-muted">Must be at least 8 characters long.</p>
</div>
<div>
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Reply</button>
</div>
</form>
</div>
{% endfor %}
+1 -1
View File
@@ -62,7 +62,7 @@
<i class="fa-solid fa-arrow-up mr-1"></i> {{ post.upvotes }}
</span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
<i class="fas fa-reply mr-1"></i> REPLY
<a href="/reply/"><i class="fas fa-reply mr-1"></i> REPLY</a>
</span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }}