Skip to content

Commit 8da7810

Browse files
committed
fix(progress bar afcl) allow disable values but keep progress, make bar smoother
1 parent cd3d4f2 commit 8da7810

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

adminforth/spa/src/afcl/ProgressBar.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
<span class="absolute -top-6 left-0 text-sm text-gray-500">{{ leftLabel }}</span>
44
<span class="absolute -top-6 right-0 text-sm text-gray-500">{{ rightLabel }}</span>
55
<div
6-
class="bg-lightPrimary dark:bg-darkPrimary h-2.5 rounded-full"
6+
class="bg-lightPrimary dark:bg-darkPrimary h-2.5 rounded-full transition-all duration-300 ease-in-out"
77
:style="{ width: `${percentage}%` }"
88
></div>
9-
<template v-if="showValues">
10-
<span class="absolute top-4 left-0 text-sm text-gray-500">{{ formatValue(minValue) }}</span>
11-
<span v-if="showProgress" class="absolute top-4 right-1/2 translate-x-1/2 text-sm text-gray-500">{{ progressText }}</span>
12-
<span class="absolute top-4 right-0 text-sm text-gray-500">{{ formatValue(maxValue) }}</span>
13-
</template>
9+
<span v-if="showValues" class="absolute top-4 left-0 text-sm text-gray-500">{{ formatValue(minValue) }}</span>
10+
<span v-if="showProgress" class="absolute top-4 right-1/2 translate-x-1/2 text-sm text-gray-500">{{ progressText }}</span>
11+
<span v-if="showValues" class="absolute top-4 right-0 text-sm text-gray-500">{{ formatValue(maxValue) }}</span>
1412
</div>
1513
</template>
1614

0 commit comments

Comments
 (0)