Skip to content

Commit

Permalink
Make poll results appear inside of a post (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ButteredCats authored Sep 21, 2024
1 parent 7156be6 commit 2991813
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,10 @@ a.search_subreddit:hover {
width: 100%;
}

.highlighted .post_poll {
padding: 15px 0 5px;
}

/* Used only for text post preview */
.post_preview {
-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
Expand Down
5 changes: 4 additions & 1 deletion templates/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ <h1 class="post_title">
{% endif %}

<!-- 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 }}">
{% if prefs.hide_score != "on" %}
{{ post.score.0 }}
Expand Down

0 comments on commit 2991813

Please sign in to comment.