Make poll results appear inside of a post (#218)

This commit is contained in:
Butter Cat 2024-09-21 00:02:34 -04:00 committed by GitHub
parent 7156be6ad0
commit 2991813c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -1242,6 +1242,10 @@ a.search_subreddit:hover {
width: 100%; width: 100%;
} }
.highlighted .post_poll {
padding: 15px 0 5px;
}
/* Used only for text post preview */ /* Used only for text post preview */
.post_preview { .post_preview {
-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);

View File

@ -153,7 +153,10 @@
{% endif %} {% endif %}
<!-- POST BODY --> <!-- POST BODY -->
<div class="post_body">{{ post.body|safe }}</div> <div class="post_body">
{{ post.body|safe }}
{% call poll(post) %}
</div>
<div class="post_score" title="{{ post.score.1 }}"> <div class="post_score" title="{{ post.score.1 }}">
{% if prefs.hide_score != "on" %} {% if prefs.hide_score != "on" %}
{{ post.score.0 }} {{ post.score.0 }}