Skip to content

High performance self-hosted photo and video management solution.

feat(web): display age with months if age is less than 2 (#9053)

Julian Wachholz2593110219f1
diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte
index 4d20834cb3..d3f977f762 100644
--- a/web/src/lib/components/asset-viewer/detail-panel.svelte
+++ b/web/src/lib/components/asset-viewer/detail-panel.svelte
@@ -292,6 +292,8 @@
>
{#if ageInMonths <= 11}
Age {ageInMonths} months
+ {:else if ageInMonths > 12 && ageInMonths <= 23}
+ Age 1 year, {ageInMonths - 12} months
{:else}
Age {age}
{/if}