Put default spark-bar-bar css in table.scss file

This commit is contained in:
Ryan Ahearn
2023-03-08 09:17:31 -05:00
parent 73a3511ef2
commit bb77086342
2 changed files with 8 additions and 8 deletions

View File

@@ -446,3 +446,7 @@ a.table-show-more-link {
overflow: hidden;
text-overflow: ellipsis;
}
.spark-bar-bar {
width: 100%;
}

View File

@@ -183,17 +183,13 @@
id=None
) %}
{% call field(align='right') %}
<style nonce="{{ csp_nonce() }}">
{% if id %}
{% if id %}
<style nonce="{{ csp_nonce() }}">
#{{id}} .spark-bar-bar {
width: {{ count / max_count * 100 }}%;
}
{% else %}
.spark-bar-bar {
width: 100%;
}
{% endif %}
</style>
</style>
{% endif %}
<span {% if id %}id="{{ id }}"{% endif %} class="spark-bar">
<span class="spark-bar-bar">
{{ '{:,.0f}'.format(count) }}