Skip to content

Commit

Permalink
Floor percentage shown under staking amount slider
Browse files Browse the repository at this point in the history
To show 99% until the slider is actually all the way to the right.
  • Loading branch information
sisou committed Nov 22, 2024
1 parent 9ad9266 commit a325d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/staking/AmountSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
</div>
<div class="percent-amount-text" ref="$percentText">
{{ Math.round(currentPercentage) }}%
{{ Math.floor(currentPercentage) }}%
</div>
<VerticalLineIcon v-for="(x, index) in Array(11)" :key="index" class="bottom-indicator"
:style="`left: calc(2rem + 2px + (100% - 4rem - 4px) * (${index} / 10) - 1px)`" />
Expand Down

0 comments on commit a325d9b

Please sign in to comment.