mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
fix(GUI): limit button progress and width to 100 (#1256)
We limit the progress button width by limiting the progress to a maximum value of 100. Change-Type: patch Changelog-Entry: Prevent progress button percentage to exceed 100%.
This commit is contained in:
parent
e16234e3e8
commit
63901ccf77
@ -3,5 +3,5 @@
|
||||
'progress-button--striped': striped && striped != 'false'
|
||||
}">
|
||||
<span class="progress-button__content" ng-transclude></span>
|
||||
<span class="progress-button__bar" ng-style="{ width: percentage + '%' }"></span>
|
||||
<span class="progress-button__bar" ng-style="{ width: Math.min(100, percentage) + '%' }"></span>
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user