1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#6797: Improve utilization graph display for small values

This commit is contained in:
jeremystretch
2021-07-28 16:42:44 -04:00
parent c7e0abc3fb
commit 33d40d4253

View File

@@ -10,9 +10,12 @@
aria-valuemax="100"
aria-valuenow="{{ utilization }}"
class="progress-bar {{ bar_class }}"
style="min-width: 8%; width: {{ utilization }}%;"
style="width: {{ utilization }}%;"
>
{{ utilization }}%
{% if utilization >= 25 %}{{ utilization }}%{% endif %}
</div>
{% if utilization < 25 %}
<span class="ps-1">{{ utilization }}%</span>
{% endif %}
</div>
{% endif %}