Fix usage graph not exceeding 100%
By using `toFixed` we were rounding the percentages which could lead to undesired behaviour where the accumulated percentages were above 100%. We are now not rounding the numbers anymore and use `flex` which accepts floating pointing numbers.
显示
- ee/app/assets/javascripts/storage_counter/components/usage_graph.vue 10 个添加, 10 个删除...ts/javascripts/storage_counter/components/usage_graph.vue
- ee/changelogs/unreleased/nicolas-fix-usage-graph-overflow.yml 5 个添加, 0 个删除...hangelogs/unreleased/nicolas-fix-usage-graph-overflow.yml
- ee/spec/frontend/storage_counter/components/usage_graph_spec.js 16 个添加, 4 个删除...c/frontend/storage_counter/components/usage_graph_spec.js
加载中
想要评论请 注册 或 登录