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

View file

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

View file

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