Skip to content

Commit

Permalink
Prevent like buttons from shifting (for reasonable vote numbers)
Browse files Browse the repository at this point in the history
  • Loading branch information
bburgess19 committed Dec 6, 2023
1 parent 753d84f commit 6b50ffc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/forum/board_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link rel="stylesheet" href="{% static 'machina/custom-styling.css' %}" />
{% endblock css %}
{% block body %}
<div class="my-5 container " id="main_container">
<div class="my-5 container" id="main_container">
<div class="row">
<div class="col-12">
{% block breadcrumb %}
Expand Down
11 changes: 10 additions & 1 deletion src/templates/forum_conversation/topic_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
{% load forum_member_tags %}
{% load forum_permission_tags %}

{% block css %}
{{ block.super }}
<style>
.vote-container span {
min-width: 60px;
text-align: center;
}
</style>
{% endblock css %}
{% block sub_title %}
{{ topic.subject }}
{% endblock sub_title %}
Expand Down Expand Up @@ -86,7 +95,7 @@ <h4 class="m-0 subject">
<button class="like-button btn btn-lg" type="submit" name="rate" value="like">
<i class="far fa-thumbs-up"></i>
</button>
<span class="like-count fas" id="like-count">{{ post.rating }}</span>
<span class="like-count h5 mb-0" id="like-count">{{ post.rating }}</span>
<button class="dislike-button btn btn-lg"
type="submit"
name="rate"
Expand Down

0 comments on commit 6b50ffc

Please sign in to comment.