样式优化

This commit is contained in:
ZaneYork 2024-09-23 17:10:44 +08:00
parent 6c77a4ba05
commit 237f643a7f
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@
{% for key in summary_keys %}
<li class="list-group-item d-flex justify-content-between align-items-center{{ " active" if result == key else "" }} {{ " list-group-item-primary" if predict_result == key else "" }}">
<span class="col-5">{{ key }}</span>
<span class="col-3">{{ '{:.1f}'.format(summary[key] | round(2)) }}票</span>
<span class="col-3">{{ '{:.1f}'.format(summary[key] / total_vote * 100 | round(2)) }}%</span>
<span class="col-3">{{ '{:.1f}'.format(summary[key] | round(1)) }}票</span>
<span class="col-3">{{ '{:.1f}'.format(summary[key] / total_vote * 100 | round(1)) }}%</span>
</li>
{% else %}
<li class="list-group-item">