Skip to content

Commit

Permalink
fix: Fixed display of 0% inside label in progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyjamer committed Sep 30, 2024
1 parent c679aa9 commit 846f6f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
label-progress
size="lg"
/>

<fwb-progress
:progress="0"
label-position="inside"
label-progress
size="lg"
/>
</template>

<script setup>
Expand Down
2 changes: 1 addition & 1 deletion src/components/FwbProgress/FwbProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div
:class="innerClasses"
:style="{ width: progress + '%' }"
class="rounded-full font-medium text-blue-100 text-center p-0.5"
class="rounded-full font-medium text-blue-100 text-center p-0.5 min-w-max"
>
<template v-if="labelProgress && labelPosition === 'inside'">
{{ progress }}%
Expand Down

0 comments on commit 846f6f6

Please sign in to comment.