mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +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;
|
display: block;
|
||||||
width: calc(100% + 30px);
|
width: calc(100% + 30px);
|
||||||
margin: -5px -15px 0px -15px;
|
margin: -5px -15px 0px -15px;
|
||||||
border-radius: 5px 0 0 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
section.identity .icon {
|
section.identity .icon {
|
||||||
|
@ -1430,7 +1429,7 @@ form .post {
|
||||||
.post time {
|
.post time {
|
||||||
display: block;
|
display: block;
|
||||||
color: var(--color-text-duller);
|
color: var(--color-text-duller);
|
||||||
width: 65px;
|
width: 70px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: var(--color-bg-main);
|
background-color: var(--color-bg-main);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
|
@ -4,21 +4,23 @@
|
||||||
|
|
||||||
{% block subcontent %}
|
{% block subcontent %}
|
||||||
|
|
||||||
{% for identity in page_obj %}
|
<div class="page-content">
|
||||||
{% include "activities/_identity.html" %}
|
{% for identity in page_obj %}
|
||||||
{% empty %}
|
{% include "activities/_identity.html" %}
|
||||||
<span class="empty">
|
{% empty %}
|
||||||
This person has no {% if inbound %}followers{% else %}follows{% endif %} yet.
|
<span class="empty">
|
||||||
</span>
|
This person has no {% if inbound %}followers{% else %}follows{% endif %} yet.
|
||||||
{% endfor %}
|
</span>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
<div class="pagination">
|
<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>
|
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page_obj.has_next %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -89,31 +89,33 @@
|
||||||
|
|
||||||
{% block subcontent %}
|
{% block subcontent %}
|
||||||
|
|
||||||
{% for post in page_obj %}
|
<div class="page-content">
|
||||||
{% include "activities/_post.html" %}
|
{% for post in page_obj %}
|
||||||
{% empty %}
|
{% include "activities/_post.html" %}
|
||||||
<span class="empty">
|
{% empty %}
|
||||||
{% if identity.local %}
|
<span class="empty">
|
||||||
No posts yet.
|
{% if identity.local %}
|
||||||
{% else %}
|
No posts yet.
|
||||||
No posts have been received by this server yet.
|
{% else %}
|
||||||
|
No posts have been received by this server yet.
|
||||||
|
|
||||||
{% if identity.profile_uri %}
|
{% if identity.profile_uri %}
|
||||||
You may find historical posts at
|
You may find historical posts at
|
||||||
<a href="{{ identity.profile_uri }}">their original profile ➔</a>
|
<a href="{{ identity.profile_uri }}">their original profile ➔</a>
|
||||||
|
{% endif %}
|
||||||
{% 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 %}
|
{% endif %}
|
||||||
</span>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<div class="pagination">
|
{% if page_obj.has_next %}
|
||||||
{% if page_obj.has_previous and not request.htmx %}
|
<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>
|
||||||
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
|
|
||||||
{% 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 %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue