Add cardview to search results too

This commit is contained in:
robrobinbin 2021-01-14 21:53:07 +01:00
parent d19e73f059
commit 45660816ce

View file

@ -38,7 +38,7 @@
{% if post.flags.nsfw && prefs.hide_nsfw == "on" %}
{% else if post.title != "Comment" %}
<div class="post">
<div class="post {% if prefs.layout == "card" && post.post_type == "image" %}card_post{% endif %}">
<div class="post_left">
<p class="post_score">{{ post.score }}</p>
{% if post.flags.nsfw %}<div class="nsfw">NSFW</div>{% endif %}
@ -63,7 +63,6 @@
</p>
</div>
<!-- POST THUMBNAIL -->
<!-- POST MEDIA/THUMBNAIL -->
{% if prefs.layout == "card" && post.post_type == "image" %}
<img class="post_media" src="{{ post.media }}"/>