Show all 5 dashboard KPI cards in one row from md, not lg

The sidebar in management/base.html is hidden below lg (1024px), so
nothing competes for width below that breakpoint either -- but the
KPI grid stayed at 2 columns until lg anyway, showing 2 columns on
any window between 640-1023px wide for no reason.
This commit is contained in:
2026-08-06 22:43:02 +02:00
parent 6cd39fcb7f
commit 101e98b4a8

View File

@@ -35,7 +35,7 @@
money-shaped renders below for non-admins, same line the nav already draws money-shaped renders below for non-admins, same line the nav already draws
around the Shop section. around the Shop section.
{% endcomment %} {% endcomment %}
<div class="mb-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-5"> <div class="mb-6 grid gap-4 sm:grid-cols-2 md:grid-cols-5">
<div class="card bg-base-100 shadow border-l-4 {% if attention.teams_without_manager %}border-error{% else %}border-success{% endif %}"> <div class="card bg-base-100 shadow border-l-4 {% if attention.teams_without_manager %}border-error{% else %}border-success{% endif %}">
<div class="card-body p-4"> <div class="card-body p-4">
<div class="flex items-center gap-2 text-sm opacity-70 mb-3">{% lucide "user-x" size=16 %} {% trans "Teams without coach" %}</div> <div class="flex items-center gap-2 text-sm opacity-70 mb-3">{% lucide "user-x" size=16 %} {% trans "Teams without coach" %}</div>