add py-1 to button divs, tweak vertical alignment

This commit is contained in:
Pieter Lambrecht 2023-01-21 18:16:20 +01:00
parent bbb3dd180d
commit c49a40e2c5
7 changed files with 8 additions and 8 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1044,7 +1044,7 @@ html {
.sticky-bottom-content-p0 {
background-color: $tab-content-bg;
bottom: 0.05em;
bottom: 0.01em;
z-index: 900;
}
.sticky-bottom-content-p1 {
@ -1055,7 +1055,7 @@ html {
.sticky-bottom-table-p0 {
background-color: var(--nbx-select-content-bg);
bottom: 0.05em;
bottom: 0.01em;
z-index: 900;
}
.sticky-bottom-table-p1 {
@ -1066,12 +1066,12 @@ html {
.sticky-top-table-p0 {
background-color: var(--nbx-select-content-bg);
top: 3.5em;
top: 3.3em;
z-index: 900;
}
.sticky-top-table-p1 {
background-color: var(--nbx-select-content-bg);
top: 5.3em;
top: 5.1em;
z-index: 900;
}

View File

@ -98,7 +98,7 @@ Context:
{% endif %}
{% endblock form %}
<div class="text-end my-3 position-sticky sticky-bottom-content-p0">
<div class="text-end my-3 py-1 position-sticky sticky-bottom-content-p0">
{% block buttons %}
{% if object.pk %}
<button type="submit" name="_update" class="btn btn-primary">

View File

@ -116,7 +116,7 @@ Context:
</div>
{# Form buttons #}
<div class="noprint bulk-buttons position-sticky sticky-bottom-content-p0">
<div class="noprint bulk-buttons py-1 position-sticky sticky-bottom-content-p0">
<div class="bulk-button-group">
{% block bulk_buttons %}
{% if 'bulk_edit' in actions %}

View File

@ -4,13 +4,13 @@
{% with preferences|get_key:"pagination.placement" as paginator_placement %}
{% if paginator_placement == 'top' or paginator_placement == 'both' %}
<div class="position-sticky sticky-top-table-p0">
<div class="position-sticky py-1 sticky-top-table-p0">
{% include 'inc/paginator_htmx.html' with paginator=table.paginator page=table.page %}
</div>
{% endif %}
{% render_table table 'inc/table_htmx.html' %}
{% if paginator_placement != 'top' %}
<div class="position-sticky sticky-bottom-table-p1">
<div class="position-sticky py-1 sticky-bottom-table-p1">
{% include 'inc/paginator_htmx.html' with paginator=table.paginator page=table.page %}
</div>
{% endif %}