diff --git a/app/components/Package/SizeDecrease.vue b/app/components/Package/SizeDecrease.vue index 7872286046..fa730b6cd5 100644 --- a/app/components/Package/SizeDecrease.vue +++ b/app/components/Package/SizeDecrease.vue @@ -7,8 +7,9 @@ const props = defineProps<{ const bytesFormatter = useBytesFormatter() const numberFormatter = useNumberFormatter() +const percentFormatter = useNumberFormatter({ style: 'percent' }) -const sizePercent = computed(() => Math.round(Math.abs(props.diff.sizeRatio) * 100)) +const sizePercent = computed(() => percentFormatter.value.format(Math.abs(props.diff.sizeRatio))) const sizeDecreaseAbs = computed(() => Math.abs(props.diff.sizeIncrease)) const depDecreaseAbs = computed(() => Math.abs(props.diff.depDiff)) @@ -33,7 +34,7 @@ const depDecreaseAbs = computed(() => Math.abs(props.diff.depDiff))