refactor: Improve post list layout and remove redundant elements
This commit is contained in:
1 parent
7f6e016bd9
commit
ee6f12d120
2 files changed
+4
-12
No files matched your search
@@ -4,11 +4,10 @@
|
||||
</div>
|
||||
|
||||
<!-- Filter and Sort Controls -->
|
||||
<div class="mb-6 p-4 bg-gray-100 rounded-md">
|
||||
<div class="flex flex-col sm:flex-row justify-between items-center space-y-4 sm:space-y-0">
|
||||
<div class="mb-6 pb-4 bg-gray-100 rounded-md">
|
||||
<div class="flex flex-col sm:flex-row justify-between space-y-4 sm:space-y-0">
|
||||
<!-- Filter by Type -->
|
||||
<div class="filter-controls flex flex-col space-y-3 sm:flex-row sm:space-y-0 sm:space-x-2 sm:items-center">
|
||||
<span class="text-sm font-medium text-gray-700 mr-2 hidden sm:inline">Show:</span>
|
||||
<button data-filter-type="all" class="filter-btn active w-full sm:w-auto flex items-center justify-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary transition-colors duration-150 ease-in-out" title="All">
|
||||
<i class="fas fa-list fa-fw text-primary"></i> <span class="text-sm font-action font-medium text-primary">All</span>
|
||||
</button>
|
||||
@@ -44,16 +43,8 @@
|
||||
<article class="flex flex-col md:flex-row items-start">
|
||||
<div class="flex-1 text-left">
|
||||
<div>
|
||||
<!-- Icon and Post Title -->
|
||||
<!-- Post Title -->
|
||||
<div class="flex items-center space-x-2 mb-0.5">
|
||||
{% assign post_type = post.type | default: 'unknown' %}
|
||||
{% if post_type == "frustration" %}
|
||||
<img src="/assets/images/icon_frustrated.png" alt="Frustration" class="w-5 h-5 object-contain flex-shrink-0" title="Frustration">
|
||||
{% elsif post_type == "weird" %}
|
||||
<img src="/assets/images/icon_weird.png" alt="Weird" class="w-5 h-5 object-contain flex-shrink-0" title="Weird">
|
||||
{% elsif post_type == "win" %}
|
||||
<img src="/assets/images/icon_win.png" alt="Win" class="w-5 h-5 object-contain flex-shrink-0" title="Win">
|
||||
{% endif %}
|
||||
<p class="mt-0 mb-0">
|
||||
<strong>
|
||||
<a href="{{ post.url }}" class="text-text-title font-bold text-md md:text-sm hover:underline">
|
||||
|
||||
Reference in new issue
Block a user