fix divider visual bug between events and trips

This commit is contained in:
Philipp 2023-04-28 19:27:36 +02:00
parent 62617b4b42
commit 1e29fab4d1

View File

@ -28,9 +28,11 @@
<small class="inline-block ml-1 text-xs text-gray-400">{{ day.day | date(format="%A", locale="de_AT") }}</small> <small class="inline-block ml-1 text-xs text-gray-400">{{ day.day | date(format="%A", locale="de_AT") }}</small>
</h2> </h2>
{% if day.planned_events | length > 0 or day.trips | length > 0 %}
<div class="grid grid-cols-1 gap-3 divide-y mb-3">
{# --- START Events --- #} {# --- START Events --- #}
{% if day.planned_events | length > 0 %} {% if day.planned_events | length > 0 %}
<div class="grid grid-cols-1 gap-3 divide-y mb-3">
{% for planned_event in day.planned_events %} {% for planned_event in day.planned_events %}
{% set amount_cur_cox = planned_event.cox | length %} {% set amount_cur_cox = planned_event.cox | length %}
{% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %} {% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %}
@ -128,13 +130,11 @@
{# --- END Sidebar Content --- #} {# --- END Sidebar Content --- #}
</div> </div>
{% endfor %} {% endfor %}
</div>
{% endif %} {% endif %}
{# --- END Events --- #} {# --- END Events --- #}
{# --- START Trips --- #} {# --- START Trips --- #}
{% if day.trips | length > 0 %} {% if day.trips | length > 0 %}
<div class="grid grid-cols-1 gap-3 divide-y mb-3">
{% for trip in day.trips %} {% for trip in day.trips %}
<div class="pt-2 reset-js" data-coxneeded="false"> <div class="pt-2 reset-js" data-coxneeded="false">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
@ -197,9 +197,10 @@
</div> </div>
{# --- END Sidebar Content --- #} {# --- END Sidebar Content --- #}
{% endfor %} {% endfor %}
</div>
{% endif %} {% endif %}
{# --- END Trips --- #} {# --- END Trips --- #}
</div>
{% endif %}
</div> </div>
{# --- START Add Buttons --- #} {# --- START Add Buttons --- #}