Fix a few visual bugs

This commit is contained in:
Andrew Godwin 2023-05-05 23:04:20 -07:00
parent a4e6033a0b
commit eeee385a61
3 changed files with 40 additions and 37 deletions

View file

@ -1148,7 +1148,6 @@ section.identity .banner {
display: block;
width: calc(100% + 30px);
margin: -5px -15px 0px -15px;
border-radius: 5px 0 0 0;
}
section.identity .icon {
@ -1430,7 +1429,7 @@ form .post {
.post time {
display: block;
color: var(--color-text-duller);
width: 65px;
width: 70px;
text-align: center;
background-color: var(--color-bg-main);
border-radius: 3px;

View file

@ -4,6 +4,7 @@
{% block subcontent %}
<div class="page-content">
{% for identity in page_obj %}
{% include "activities/_identity.html" %}
{% empty %}
@ -13,12 +14,13 @@
{% endfor %}
<div class="pagination">
{% if page_obj.has_previous %}
{% if page_obj.has_previous and not request.htmx %}
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
{% endif %}
{% if page_obj.has_next %}
<a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a>
<a class="button" href=".?page={{ page_obj.next_page_number }}" hx-boost="true" hx-select=".page-content" hx-target=".pagination" hx-swap="outerHTML">Next Page</a>
{% endif %}
</div>
</div>
{% endblock %}

View file

@ -89,6 +89,7 @@
{% block subcontent %}
<div class="page-content">
{% for post in page_obj %}
{% include "activities/_post.html" %}
{% empty %}
@ -112,9 +113,10 @@
{% endif %}
{% if page_obj.has_next %}
<a class="button" href=".?page={{ page_obj.next_page_number }}" hx-get=".?page={{ page_obj.next_page_number }}" hx-select=".left-column > *:not(.view-options)" hx-target=".pagination" hx-swap="outerHTML">Next Page</a>
<a class="button" href=".?page={{ page_obj.next_page_number }}" hx-boost="true" hx-select=".page-content" hx-target=".pagination" hx-swap="outerHTML">Next Page</a>
{% endif %}
</div>
</div>
{% endblock %}
{% endif %}