mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-23 05:56:29 +00:00
Fix a few visual bugs
This commit is contained in:
parent
a4e6033a0b
commit
eeee385a61
3 changed files with 40 additions and 37 deletions
|
@ -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;
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue