Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(billing): preserve numeric feature precision

Timothy Yinf28192e55595
diff --git a/apps/cloud/app/components/CloudPlanFeatureValue.vue b/apps/cloud/app/components/CloudPlanFeatureValue.vue
index 9e428925..486eb2a9 100644
--- a/apps/cloud/app/components/CloudPlanFeatureValue.vue
+++ b/apps/cloud/app/components/CloudPlanFeatureValue.vue
@@ -21,7 +21,9 @@ const { t, locale } = useI18n()
/>
<span v-else>{{
feature.type === 'number'
- ? new Intl.NumberFormat(locale).format(Number(feature.value))
+ ? new Intl.NumberFormat(locale, { maximumSignificantDigits: 21 }).format(
+ Number(feature.value),
+ )
: feature.value
}}</span>
</template>