Compare commits

..

2 commits

Author SHA1 Message Date
5ccae7f4a3
Fix spacing with pagination 2024-01-02 15:07:42 +01:00
3fd87ff370
Update month page template 2024-01-02 15:03:45 +01:00
3 changed files with 15 additions and 8 deletions

View file

@ -150,6 +150,7 @@ footer {
.pagination {
text-align: center;
font-feature-settings: var(--num);
a {
min-width: 1rem;
padding: 0 0.5rem;
@ -168,7 +169,7 @@ footer {
display: grid;
grid-template-columns: repeat(3, 1fr);
width: max-content;
margin: auto;
margin: 0.5rem auto;
.prev {
grid-column: 1;
@ -180,6 +181,10 @@ footer {
grid-column: 3;
}
}
& + section :first-child {
margin-top: 0;
}
}
@media (width < 1024px) {

View file

@ -6,10 +6,12 @@
{% endblock %}
{% block h2 %}{{ month|date:"F Y"|capfirst }}{% endblock %}
{% block table %}
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
{% if not category %}
<h3>{% translate "Categories" %}</h3>
{% category_plot transactions month=month %}
{% endif %}
<section>
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
</section>
{% endblock %}

View file

@ -9,14 +9,14 @@
{% block table %}
{% if history %}
<section>
<h3>
{% translate "History" %}
</h2>
<h3>{% translate "History" %}</h3>
{% include "history/plot.html" %}
</section>
{% endif %}
{% if not category %}
<section>
<h3>{% translate "Categories" %}</h3>
{% category_plot transactions year=year %}
</section>
{% endif %}
{% endblock %}