feat: Hide "More" button when no posts are found

This commit is contained in:
Kerby Martino (aider) committed 2025-05-05 12:05:40 +08:00
1 parent ae9d23b507
commit 0a2d0b4247
1 file changed
+2
+2
View File
@@ -96,6 +96,8 @@
</div> </div>
<!-- More Button --> <!-- More Button -->
{% if posts != empty %}
<div class="pt-2"> <div class="pt-2">
<button type="submit" class="w-full md:w-auto px-6 py-3 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">More</button> <button type="submit" class="w-full md:w-auto px-6 py-3 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">More</button>
</div> </div>
{% endif %}