From 922a9103c895c95a5e850a805df96ee0259b43d8 Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Sat, 21 Dec 2024 11:55:36 +0100 Subject: [PATCH] voting_buttons remove extra whitespace and make hiding the arrows consistent --- app/templates/post/_post_voting_buttons.html | 22 ++++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/templates/post/_post_voting_buttons.html b/app/templates/post/_post_voting_buttons.html index 50436dbb..a4fc2d40 100644 --- a/app/templates/post/_post_voting_buttons.html +++ b/app/templates/post/_post_voting_buttons.html @@ -7,19 +7,23 @@ {% endif -%} {{ shorten_number(post.up_votes - post.down_votes) }} - {% if can_downvote(current_user, post.community) and not disable_voting -%} + {%- if can_downvote(current_user, post.community) and not disable_voting -%}
- {% endif -%} + {%- endif -%} {% else -%} -
- -
-{{ shorten_number(post.up_votes - post.down_votes) }} -
- -
+ {% if not disable_voting -%} +
+ +
+ {% endif -%} + {{ shorten_number(post.up_votes - post.down_votes) }} + {%- if not disable_voting -%} +
+ +
+ {%- endif -%} {% endif -%}