Reduce vetical space at top of dashboard

This commit is contained in:
Jeremy Stretch 2024-01-09 15:09:10 -05:00
parent 6439a91f11
commit 58628aa086
2 changed files with 23 additions and 15 deletions

View File

@ -173,20 +173,28 @@ Blocks:
{# Page body #} {# Page body #}
{% block page %}
<div class="page-body"> <div class="page-body">
<div class="container-xl tab-content py-3"> <div class="container-xl tab-content py-3">
{# Page content #}
{# TODO: Remove content-wrapper block #} {# TODO: Remove content-wrapper block #}
{% block content-wrapper %} {% block content-wrapper %}
{% block content %}{% endblock %} {% block content %}{% endblock %}
{% endblock %} {% endblock %}
{# /Page content #}
{# Bottom banner #} {# Bottom banner #}
{% if config.BANNER_BOTTOM %} {% if config.BANNER_BOTTOM %}
<div class="text-center mx-3 mt-2"> <div class="text-center mx-3 mt-2">
{{ config.BANNER_BOTTOM|safe }} {{ config.BANNER_BOTTOM|safe }}
</div> </div>
{% endif %} {% endif %}
{# /Bottom banner #}
</div> </div>
</div> </div>
{% endblock page %}
{# /Page body #} {# /Page body #}
{# Page footer #} {# Page footer #}

View File

@ -23,9 +23,9 @@
{% block title %}{% trans "Home" %}{% endblock %} {% block title %}{% trans "Home" %}{% endblock %}
{% block content-wrapper %} {% block page %}
{# Render the user's customized dashboard #} {# Render the user's customized dashboard #}
<div class="grid-stack" id="dashboard"> <div class="grid-stack m-2" id="dashboard">
{% for widget in dashboard %} {% for widget in dashboard %}
{% include 'extras/dashboard/widget.html' %} {% include 'extras/dashboard/widget.html' %}
{% endfor %} {% endfor %}
@ -65,7 +65,7 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock content-wrapper %} {% endblock page %}
{% block modals %} {% block modals %}
{% include 'inc/htmx_modal.html' %} {% include 'inc/htmx_modal.html' %}