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,21 +4,23 @@
{% block subcontent %}
{% for identity in page_obj %}
{% include "activities/_identity.html" %}
{% empty %}
<span class="empty">
This person has no {% if inbound %}followers{% else %}follows{% endif %} yet.
</span>
{% endfor %}
<div class="page-content">
{% for identity in page_obj %}
{% include "activities/_identity.html" %}
{% empty %}
<span class="empty">
This person has no {% if inbound %}followers{% else %}follows{% endif %} yet.
</span>
{% endfor %}
<div class="pagination">
{% if page_obj.has_previous %}
<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>
{% endif %}
<div class="pagination">
{% 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 }}" hx-boost="true" hx-select=".page-content" hx-target=".pagination" hx-swap="outerHTML">Next Page</a>
{% endif %}
</div>
</div>
{% endblock %}

View file

@ -89,31 +89,33 @@
{% block subcontent %}
{% for post in page_obj %}
{% include "activities/_post.html" %}
{% empty %}
<span class="empty">
{% if identity.local %}
No posts yet.
{% else %}
No posts have been received by this server yet.
<div class="page-content">
{% for post in page_obj %}
{% include "activities/_post.html" %}
{% empty %}
<span class="empty">
{% if identity.local %}
No posts yet.
{% else %}
No posts have been received by this server yet.
{% if identity.profile_uri %}
You may find historical posts at
<a href="{{ identity.profile_uri }}">their original profile ➔</a>
{% if identity.profile_uri %}
You may find historical posts at
<a href="{{ identity.profile_uri }}">their original profile ➔</a>
{% endif %}
{% endif %}
</span>
{% endfor %}
<div class="pagination">
{% if page_obj.has_previous and not request.htmx %}
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
{% endif %}
</span>
{% endfor %}
<div class="pagination">
{% 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 }}" hx-get=".?page={{ page_obj.next_page_number }}" hx-select=".left-column > *:not(.view-options)" hx-target=".pagination" hx-swap="outerHTML">Next Page</a>
{% endif %}
{% if page_obj.has_next %}
<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 %}