style: Apply account settings merit row style to merits page

This commit is contained in:
Kerby Martino (aider) committed 2025-05-08 13:23:13 +08:00
1 parent dd3740d6d3
commit 52010b7f58
1 file changed
+14 -14
+14 -14
View File
@@ -55,40 +55,40 @@ layout: default # Assuming 'default' is your base layout
{% assign static_merit_events_for_demo = true %} <!-- Set to false when dynamic data is ready --> {% assign static_merit_events_for_demo = true %} <!-- Set to false when dynamic data is ready -->
{% if static_merit_events_for_demo %} {% if static_merit_events_for_demo %}
<ul class="space-y-4"> <div class="space-y-0"> <!-- Changed ul to div and removed space-y-4 from here, mb-4 on items will handle spacing -->
<li class="p-4 bg-white rounded-md shadow border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light">
<small class="text-sm block"> <small class="text-sm mb-1 block">
<span class="text-primary font-bold">+1 Merit</span> <span class="text-primary font-bold">+1 Merit</span>
<span class="text-text-muted opacity-75">– Upvote received on post:</span> <span class="text-text-muted opacity-75">– Upvote received on post:</span>
<a href="#" class="text-primary font-action hover:underline">"Found the perfect focus playlist"</a> <a href="#" class="text-primary font-action hover:underline">"Found the perfect focus playlist"</a>
<span class="text-text-muted text-xs opacity-75 ml-1">May 04, 2025 10:30 AM</span> <span class="text-text-muted text-xs opacity-75 ml-1">May 04, 2025 10:30 AM</span>
</small> </small>
</li> </div>
<li class="p-4 bg-white rounded-md shadow border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light">
<small class="text-sm block"> <small class="text-sm mb-1 block">
<span class="text-primary font-bold">+2 Merits</span> <span class="text-primary font-bold">+2 Merits</span>
<span class="text-text-muted opacity-75">– New comment on your post:</span> <span class="text-text-muted opacity-75">– New comment on your post:</span>
<a href="#" class="text-primary font-action hover:underline">"My standing desk setup"</a> <a href="#" class="text-primary font-action hover:underline">"My standing desk setup"</a>
<span class="text-text-muted text-xs opacity-75 ml-1">May 03, 2025 08:15 PM</span> <span class="text-text-muted text-xs opacity-75 ml-1">May 03, 2025 08:15 PM</span>
</small> </small>
</li> </div>
<li class="p-4 bg-white rounded-md shadow border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light">
<small class="text-sm block"> <small class="text-sm mb-1 block">
<span class="text-primary font-bold">+5 Merits</span> <span class="text-primary font-bold">+5 Merits</span>
<span class="text-text-muted opacity-75">– Created new post:</span> <span class="text-text-muted opacity-75">– Created new post:</span>
<a href="#" class="text-primary font-action hover:underline">"The best ergonomic accessories..."</a> <a href="#" class="text-primary font-action hover:underline">"The best ergonomic accessories..."</a>
<span class="text-text-muted text-xs opacity-75 ml-1">May 02, 2025 11:00 AM</span> <span class="text-text-muted text-xs opacity-75 ml-1">May 02, 2025 11:00 AM</span>
</small> </small>
</li> </div>
<li class="p-4 bg-white rounded-md shadow border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light"> <!-- Removed mb-4 from the last item if it's the very last one, but for consistency keep it -->
<small class="text-sm block"> <small class="text-sm mb-1 block">
<span class="text-primary font-bold">+1 Merit</span> <span class="text-primary font-bold">+1 Merit</span>
<span class="text-text-muted opacity-75">– Upvote received on comment for:</span> <span class="text-text-muted opacity-75">– Upvote received on comment for:</span>
<a href="#" class="text-primary font-action hover:underline">"Office plants that actually survive..."</a> <a href="#" class="text-primary font-action hover:underline">"Office plants that actually survive..."</a>
<span class="text-text-muted text-xs opacity-75 ml-1">May 01, 2025 09:45 AM</span> <span class="text-text-muted text-xs opacity-75 ml-1">May 01, 2025 09:45 AM</span>
</small> </small>
</li> </div>
</ul> </div> <!-- Closing the div that replaced ul -->
{% else %} {% else %}
<div class="text-center text-gray-500 font-action py-10 bg-white rounded-md shadow border border-gray-200"> <div class="text-center text-gray-500 font-action py-10 bg-white rounded-md shadow border border-gray-200">
<p>No merit activity found matching your criteria.</p> <p>No merit activity found matching your criteria.</p>