From 2593110219f155c8738b8b10a5accc8f6e1a1adf Mon Sep 17 00:00:00 2001 From: Julian Wachholz Date: Wed, 24 Apr 2024 17:09:59 +0200 Subject: [PATCH] feat(web): display age with months if age is less than 2 (#9053) --- web/src/lib/components/asset-viewer/detail-panel.svelte | 2 ++ 1 file changed, 2 insertions(+) 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}