Make season page cards more compact

This commit is contained in:
2024-02-16 11:21:50 +01:00
parent f05d227e3e
commit 15f4a7a1ef

View File

@ -21,7 +21,6 @@
{% block body %}
<h4 class="heading-text text-danger text-center">All fields (of a single user, excluding podiums) must be set or your inputs won't be saved!</h4>
<div class="grid" style="grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));">
{% for user in chosenusers %}
@ -44,33 +43,25 @@
"p2select", "P2 Constructor:") }}
</div>
{# Most Overtakes #}
<div class="mt-2">
{# Most Overtakes + DNFs #}
<div class="input-group mt-2">
{{ driver_select_with_preselect(currentselection.get(user.name).most_overtakes.abbr if user.name in currentselection else "",
"overtakeselect", "Most Overtakes:") }}
</div>
{# Most DNFs #}
<div class="mt-2">
{{ driver_select_with_preselect(currentselection.get(user.name).most_dnfs.abbr if user.name in currentselection else "",
"dnfselect", "Most DNFs:") }}
</div>
{# Most Gained #}
<div class="mt-2">
{# Most Gained + Lost #}
<div class="input-group mt-2">
{{ driver_select_with_preselect(currentselection.get(user.name).most_gained.abbr if user.name in currentselection else "",
"gainedselect", "Most Championship Positions gained:") }}
</div>
{# Most Lost #}
<div class="mt-2">
"gainedselect", "Most WDC Places gained:") }}
{{ driver_select_with_preselect(currentselection.get(user.name).most_lost.abbr if user.name in currentselection else "",
"lostselect", "Most Championship Positions lost:") }}
"lostselect", "Most WDC Places lost:") }}
</div>
{# Team-internal Winners #}
<h6 class="card-subtitle mt-2">Team-Internal Winners:</h6>
<div class="grid mt-2" style="width: 450px; row-gap: 5px;">
<div class="grid mt-2" style="width: 450px; row-gap: 0;">
{% for team in teams %}
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
{% set driver_b_name = driverpairs.get(team.name)[1].name %}
@ -103,7 +94,7 @@
{# Drivers with Podiums #}
<h6 class="card-subtitle mt-2">Drivers with Podium(s):</h6>
<div class="grid mt-2" style="width: 450px; row-gap: 5px;">
<div class="grid mt-2" style="width: 450px; row-gap: 0;">
{% for team in teams %}
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
{% set driver_b_name = driverpairs.get(team.name)[1].name %}