style: Improve post meta info spacing, margins, and padding

This commit is contained in:
Kerby Martino (aider) committed 2025-05-01 05:08:41 +08:00
1 parent 706c3572ff
commit c32584279b
1 file changed
+11 -15
+11 -15
View File
@@ -30,22 +30,18 @@
<p class="mt-0 mb-0.5">
<strong><a href="{{ post.url }}" class="text-text-title font-normal text-base hover:underline">{{ post.title }}</a></strong>
</p>
<div class="mt-0 mb-1 text-sm flex items-center">
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 mr-2 rounded-full flex items-center">
<i class="fa-solid fa-arrow-up"></i> {{ post.upvotes }}
</span>
<div class="flex items-center space-x-2 ml-2">
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-flag mr-1"></i>
</span>
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-reply mr-1"></i>
</span>
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }}
</span>
<div class="mt-0 mb-1 text-sm flex items-center space-x-2">
<small class="text-xs font-action"><a href="#" class="text-xs hover:underline">{{ post.author }}</a> <span class="text-text-muted text-xs opacity-75">{{ post.date | date: "%d %b %Y" }}</span></small>
<div class="flex items-center space-x-2">
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-flag mr-1"></i> report
</span>
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-reply mr-1"></i> reply
</span>
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }} comments
</span>
</div>
</div>
</div>