post: fix post vote horizontal content reflow #131

Merged
Aevann merged 2 commits from :fix-post-vote-content-reflow into master 2023-02-22 06:27:12 +00:00
2 changed files with 4 additions and 5 deletions

View File

@ -3946,9 +3946,8 @@ small, .small {
justify-content: center;
}
#thread .voting {
min-width: 10px;
margin-right: 10px;
overflow-wrap: normal;
min-width: 32px;
margin-right: 1px;
}
#frontpage .voting, #search .voting, #userpage .voting {
margin: auto 0;

View File

@ -224,7 +224,7 @@
</div>
{% if v %}
<div id="voting" class="voting d-mob-none mb-auto">
<div id="voting" class="voting d-mob-none mb-auto mt-1">
<div tabindex="0" data-nonce="{{g.nonce}}" data-onclick="vote('post', '{{p.id}}', '1')" class="post-{{p.id}}-up mx-auto arrow-up upvote-button post-{{p.id}}-up {% if voted==1 %}active{% endif %}"></div>
<span class="post-score-{{p.id}} score post-score-{{p.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}{% if p.controversial %} controversial{% endif %}" data-bs-toggle="tooltip" data-bs-placement="right" title="+{{ups}} | -{{downs}}" style="cursor: default">{{score}}</span>
@ -233,7 +233,7 @@
{% else %}
<div id="voting" class="voting d-mob-none mb-auto">
<div id="voting" class="voting d-mob-none mb-auto mt-1">
<a tabindex="0" class="post-{{p.id}}-up arrow-up mx-auto" href="/login?redirect={{request.full_path | urlencode}}">
</a>
<span class="post-{{p.id}}-score-none score text-muted{% if p.controversial %} controversial{% endif %}"{% if not p.is_banned %} data-bs-toggle="tooltip" data-bs-placement="right" title="+{{ups}} | -{{downs}}"{% endif %}style="cursor: default">{{score}}</span>