diff --git a/expenses_manager/expenses/static/expenses/css/base.css b/expenses_manager/expenses/static/expenses/css/base.css index 22b7b85..41e7f7d 100644 --- a/expenses_manager/expenses/static/expenses/css/base.css +++ b/expenses_manager/expenses/static/expenses/css/base.css @@ -282,6 +282,19 @@ a.danger:visited, font-size: 0.85rem; } +/* Oculta visualmente sin ocultar a lectores de pantalla. */ +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + /* ========================= */ /* Buttons */ /* ========================= */ @@ -737,12 +750,16 @@ tr:hover { .progress-label { min-width: 90px; + flex-shrink: 0; + white-space: nowrap; font-size: 0.85rem; color: var(--color-text-muted); } .progress-bar { width: 100%; + flex: 1; + min-width: 0; background: var(--color-progress-track); border-radius: 6px; height: 10px; diff --git a/expenses_manager/expenses/templates/expenses/dashboard.html b/expenses_manager/expenses/templates/expenses/dashboard.html index 04480d9..49df5a5 100644 --- a/expenses_manager/expenses/templates/expenses/dashboard.html +++ b/expenses_manager/expenses/templates/expenses/dashboard.html @@ -56,6 +56,7 @@ {% endif %} + Cuenta Todas las cuentas {% for acc in accounts %} @@ -66,6 +67,7 @@ {% if not period %} + Año {% for y in year_list %} @@ -73,7 +75,8 @@ {% endfor %} - + + Mes Todo el año {% for m in months %} @@ -245,7 +248,7 @@ {{ exp.amount|floatformat:2 }} {% empty %} - No hay gastos recientes registrados + No hay gastos recientes registrados {% endfor %} @@ -418,13 +421,19 @@ {{ goal.name }} - + + style="width: {{ goal.bar_width|unlocalize }}%"> diff --git a/expenses_manager/expenses/templates/expenses/expense_list.html b/expenses_manager/expenses/templates/expenses/expense_list.html index f8a0c90..11b6134 100644 --- a/expenses_manager/expenses/templates/expenses/expense_list.html +++ b/expenses_manager/expenses/templates/expenses/expense_list.html @@ -11,35 +11,38 @@ - + Año + Año {% for y in year_list %} - {{ y }} {% endfor %} - - + + Mes + Mes {% for m in months %} - {{ m }} {% endfor %} - - + + Cuenta + Cuenta {% for acc in accounts %} - {{ acc.name }} + {{ acc.name }} {% endfor %} @@ -58,22 +61,20 @@ Filtros avanzados - - Categoría: - - Todas - {% for cat in categories %} - - {{ cat.name }} - - {% endfor %} - - - - - Tags: + Categoría: + + Todas + {% for cat in categories %} + + {{ cat.name }} + + {% endfor %} + + + + Tags: {% for tag in tags_with_state %} {% empty %} - + No hay gastos Añade el primero @@ -150,8 +151,8 @@ - - + + {% if page_obj.has_previous %} « Primero Anterior @@ -164,6 +165,6 @@ Último » {% endif %} - + {% endblock %} \ No newline at end of file diff --git a/expenses_manager/expenses/templates/goals/list.html b/expenses_manager/expenses/templates/goals/list.html index c7c0028..9806361 100644 --- a/expenses_manager/expenses/templates/goals/list.html +++ b/expenses_manager/expenses/templates/goals/list.html @@ -7,7 +7,7 @@ {% endblock %} {% block content %} -Objetivos +Objetivos ➕ Nuevo objetivo @@ -34,7 +34,13 @@ {{ goal.progress|floatformat:1 }}€ / {{ goal.target_amount|floatformat:1 }}€ - +
No hay gastos