mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +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,6 +4,7 @@
|
||||||
|
|
||||||
{% block subcontent %}
|
{% block subcontent %}
|
||||||
|
|
||||||
|
<div class="page-content">
|
||||||
{% for identity in page_obj %}
|
{% for identity in page_obj %}
|
||||||
{% include "activities/_identity.html" %}
|
{% include "activities/_identity.html" %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
@ -13,12 +14,13 @@
|
||||||
{% endfor %}
|
{% 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,6 +89,7 @@
|
||||||
|
|
||||||
{% block subcontent %}
|
{% block subcontent %}
|
||||||
|
|
||||||
|
<div class="page-content">
|
||||||
{% for post in page_obj %}
|
{% for post in page_obj %}
|
||||||
{% include "activities/_post.html" %}
|
{% include "activities/_post.html" %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
@ -112,9 +113,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page_obj.has_next %}
|
{% 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue