From 2991813c2ddacbf0e53124f026890d88d3580704 Mon Sep 17 00:00:00 2001 From: Butter Cat Date: Sat, 21 Sep 2024 00:02:34 -0400 Subject: [PATCH] Make poll results appear inside of a post (#218) --- static/style.css | 4 ++++ templates/utils.html | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index 214af55..888d2ff 100644 --- a/static/style.css +++ b/static/style.css @@ -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); diff --git a/templates/utils.html b/templates/utils.html index 13cf0e5..e0b3589 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -153,7 +153,10 @@ {% endif %} -
{{ post.body|safe }}
+
+ {{ post.body|safe }} + {% call poll(post) %} +
{% if prefs.hide_score != "on" %} {{ post.score.0 }}