Skip to content

Commit

Permalink
Make chart and controls responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
vvasiloi committed Sep 30, 2024
1 parent 1df8ea4 commit 0e8042c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/components/MonthYieldChart.html.twig
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<div {{ attributes }}>
<div style="min-height: 480px; margin-bottom: 1.5rem;">
<div style="margin-bottom: 1.5rem;">
{{ render_chart(chart) }}
</div>
<hr>
<div class="row justify-content-center">
<div class="col-2">
<div class="col-12 col-sm-6 col-lg-4 col-xl-3">
<select id="year" class="form-select" data-model="year">
{% for value, label in years %}
<option {% if value == year%}selected{% endif%} value="{{ value }}">{{ label }}</option>
{% endfor %}
</select>
</div>

<div class="col-2">
<div class="col-12 col-sm-6 col-lg-4 col-xl-3">
<select id="month" class="form-select" data-model="month">
{% for value, label in months %}
<option {% if value == month%}selected{% endif%} value="{{ value }}">{{ label }}</option>
Expand Down

0 comments on commit 0e8042c

Please sign in to comment.